Java Code Examples for com.hjq.toast.ToastUtils#initStyle()

The following examples show how to use com.hjq.toast.ToastUtils#initStyle() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ToastActivity.java    From ToastUtils with Apache License 2.0 4 votes vote down vote up
public void show3(View v) {
    ToastUtils.initStyle(new ToastWhiteStyle(getApplication()));
    ToastUtils.show("动态切换白色吐司样式成功");
}
 
Example 2
Source File: ToastActivity.java    From ToastUtils with Apache License 2.0 4 votes vote down vote up
public void show4(View v) {
    ToastUtils.initStyle(new ToastBlackStyle(getApplication()));
    ToastUtils.show("动态切换黑色吐司样式成功");
}
 
Example 3
Source File: ToastActivity.java    From ToastUtils with Apache License 2.0 4 votes vote down vote up
public void show5(View v) {
    ToastUtils.initStyle(new ToastQQStyle(getApplication()));
    ToastUtils.show("QQ那种还不简单,分分钟的事");
}
 
Example 4
Source File: ToastActivity.java    From ToastUtils with Apache License 2.0 4 votes vote down vote up
public void show6(View v) {
    ToastUtils.initStyle(new ToastAliPayStyle(getApplication()));
    ToastUtils.show("支付宝那种还不简单,分分钟的事");
}