File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/src/main/java/basel/com/ProgressStatusBarSample Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5
5
import android .view .View ;
6
6
import android .widget .Button ;
7
7
import android .widget .CheckBox ;
8
+ import android .widget .Toast ;
8
9
9
10
10
11
import com .basel .ProgressStatusBar .ProgressStatusBar ;
@@ -47,13 +48,22 @@ public void onClick(View view) {
47
48
}
48
49
});
49
50
51
+
50
52
Button wait = findViewById (R .id .btn_wait );
51
53
wait .setOnClickListener (new View .OnClickListener () {
52
54
@ Override
53
55
public void onClick (View view ) {
54
56
mProgressStatusBar .setWaiting (6000 );
55
57
}
56
58
});
59
+
60
+ Button toast = findViewById (R .id .toast );
61
+ toast .setOnClickListener (new View .OnClickListener () {
62
+ @ Override
63
+ public void onClick (View view ) {
64
+ mProgressStatusBar .shwoToast ("1 new message" ,3000 );
65
+ }
66
+ });
57
67
58
68
mProgressStatusBar .setProgressListener (new ProgressStatusBar .OnProgressListener () {
59
69
public void onStart () {
You can’t perform that action at this time.
0 commit comments