@@ -110,19 +110,19 @@ Provides you easily create various pop-up dialogs that you can use.
110110> Simple Error Dialog
111111``` java
112112 FastDialog . e(this )
113- .setText(" Error Dialog" )
114- .hideTitle()
115- .create()
116- .show();
113+ .setText(" Error Dialog" )
114+ .hideTitle()
115+ .create()
116+ .show();
117117```
118118<img width =" 300px " src =" images/error.gif " align =" center " />
119119
120120> Login Dialog
121121``` java
122122 FastDialog dialog = new FastDialogBuilder (this ,Type . LOGIN )
123- // .loginWithEmail()
124- .setTitleText(" Login" )
125- .create();
123+ // .loginWithEmail()
124+ .setTitleText(" Login" )
125+ .create();
126126 dialog. positiveClickListener(new PositiveClick () {
127127 @Override
128128 public void onClick (View view ) {
@@ -136,45 +136,45 @@ Provides you easily create various pop-up dialogs that you can use.
136136
137137> Warning Dialog position center, grown in animation with EditText
138138``` java
139- FastDialog . w(this )
140- .setTitleText(" Warning" )
141- .setText(" Warning Text" )
142- .setHint(" please enter text" )
143- .privateEditText()
144- .setAnimation(Animations . GROW_IN )
145- .positiveText(" Accept" )
146- .create()
147- .show();
139+ FastDialog . w(this )
140+ .setTitleText(" Warning" )
141+ .setText(" Warning Text" )
142+ .setHint(" please enter text" )
143+ .privateEditText()
144+ .setAnimation(Animations . GROW_IN )
145+ .positiveText(" Accept" )
146+ .create()
147+ .show();
148148```
149149<img width =" 300px " src =" images/warning.gif " align =" center " />
150150
151151> Normal Dialog position center, fade in animation with DecimalEditText
152152``` java
153- FastDialog . d(this )
154- .setTitleText(" Dialog" )
155- .setText(" Dialog Text" )
156- .setHint(" please enter number" )
157- .decimalEditText()
158- .setAnimation(Animations . FADE_IN )
159- .positiveText(" Ok" )
160- .negativeText(" Cancel" )
161- .setInputText(" 55" )
162- .setTextMaxLenght(16 )
163- .cancelable(false )
164- .create()
165- .show();
153+ FastDialog . d(this )
154+ .setTitleText(" Dialog" )
155+ .setText(" Dialog Text" )
156+ .setHint(" please enter number" )
157+ .decimalEditText()
158+ .setAnimation(Animations . FADE_IN )
159+ .positiveText(" Ok" )
160+ .negativeText(" Cancel" )
161+ .setInputText(" 55" )
162+ .setTextMaxLenght(16 )
163+ .cancelable(false )
164+ .create()
165+ .show();
166166```
167167<img width =" 300px " src =" images/input_number.gif " align =" center " />
168168
169169> Information Dialog position bottom, slide bottom animation and listener positive button and dismiss listener
170170``` java
171171 FastDialog dialog = new FastDialogBuilder (this ,Type . INFO )
172- .setTitleText(" Information" )
173- .setText(" Information Text" )
174- .positiveText(" Ok" )
175- .setAnimation(Animations . SLIDE_BOTTOM )
176- .setPosition(Positions . BOTTOM )
177- .create();
172+ .setTitleText(" Information" )
173+ .setText(" Information Text" )
174+ .positiveText(" Ok" )
175+ .setAnimation(Animations . SLIDE_BOTTOM )
176+ .setPosition(Positions . BOTTOM )
177+ .create();
178178 dialog. positiveClickListener(new PositiveClick () {
179179 @Override
180180 public void onClick (View view ) {
@@ -195,17 +195,17 @@ Provides you easily create various pop-up dialogs that you can use.
195195> Warning Colored Dialog position top, slide top animation and listener positive button
196196``` java
197197 FastDialog dialog= new FastDialogBuilder (this ,Type . DIALOG )
198- .setTitleText(" Warning" )
199- .setText(" Warning Text" )
200- .positiveText(" Ok" )
201- .negativeText(" Cancel" )
202- .changeColor(ContextCompat . getColor(getApplicationContext(),R . color. different),
203- ContextCompat . getColor(getApplicationContext(),R . color. text2),
204- ContextCompat . getColor(getApplicationContext(),R . color. text))
205- .setHint(" please enter your name" )
206- .setAnimation(Animations . SLIDE_TOP )
207- .setPosition(Positions . TOP )
208- .create();
198+ .setTitleText(" Warning" )
199+ .setText(" Warning Text" )
200+ .positiveText(" Ok" )
201+ .negativeText(" Cancel" )
202+ .changeColor(ContextCompat . getColor(getApplicationContext(),R . color. different),
203+ ContextCompat . getColor(getApplicationContext(),R . color. text2),
204+ ContextCompat . getColor(getApplicationContext(),R . color. text))
205+ .setHint(" please enter your name" )
206+ .setAnimation(Animations . SLIDE_TOP )
207+ .setPosition(Positions . TOP )
208+ .create();
209209 dialog. positiveClickListener(new PositiveClick () {
210210 @Override
211211 public void onClick (View view ) {
@@ -225,14 +225,14 @@ Provides you easily create various pop-up dialogs that you can use.
225225 buttons. add(button);
226226 buttons. add(button2);
227227 FastDialog . f(this )
228- .setActiveButtons(buttons)
229- .onClickListener((v, position) - > {
230- Toast . makeText(MainActivity . this ,v. getTag()+ " " ,Toast . LENGTH_SHORT ). show();
231- })
232- .setAnimation(Animations . GROW_IN )
233- .setPosition(Positions . BOTTOM )
234- .create()
235- .show();
228+ .setActiveButtons(buttons)
229+ .onClickListener((v, position) - > {
230+ Toast . makeText(MainActivity . this ,v. getTag()+ " " ,Toast . LENGTH_SHORT ). show();
231+ })
232+ .setAnimation(Animations . GROW_IN )
233+ .setPosition(Positions . BOTTOM )
234+ .create()
235+ .show();
236236```
237237<img width =" 300px " src =" images/folder.gif " align =" center " />
238238
0 commit comments