Home

Awesome

utilsDialog

It is a useful tool for dialogue.

Donate

Configuration gradle

<pre> <code> android{ allprojects { repositories { maven { url 'https://jitpack.io' } } } } </code> </pre> <pre> <code> dependencies{ compile 'com.github.jvmartinez:utilsDialog:0.1.3' } </code> </pre>

then sync gradle

How to use

<pre> <code> alert.alert("Title","Message",Context); </code> </pre> <pre> <code> alert.alert("Title","Message","onClickListenerOk","onClickListenerCancel",Context); </code> </pre> <pre> <code> alertCustom custom = new alertCustom(Context,"Title","Message","onClickListenerOk","onClickListenerCancel","typeIco"); custom.openDialogo(); </code> </pre>
  1. typeIco<br /> 1.1) The value 1 is for affirmative message<br /> 1.2) The value 2 is for warning message<br /> 1.3) The value 3 is for info message<br /> 1.4) The value 4 is for error message<br />
<pre> <code> Style style = new Style(); style.setBackgroundBody(R.color.colorBodyBackground); style.setBackgroundContents(R.color.colorContentsBackground); style.setBackgroundTitle(R.color.black); style.setTextTitle(R.color.txt_title); style.setTextBody(R.color.black); style.setBtnOkColor(R.color.alert_btn_ok); style.setBtnCancelColor(R.color.alert_btn_cancel); style.setTextColorButton(R.color.colorButtonTextBackground); style.setLayoutWindows(0); alertCustom custom = new alertCustom( MainActivity.this, "Custom dialog test", "Hello world, dialog with custom,", onClickListenerOk(), onClickListenerCancel(), TypeIco.ICON_INFO, style); custom.openDialogo(); </code> </pre>

example

Dialog Traditional

Dialog message

Dialog Custom

Dialog Custom success Dialog Custom warning

Dialog Personalized

Dialog message Dialog message Dialog message

  1. style.setLayoutWindows<br /> 1.1) The value 0 custom traditional<br /> 1.2) The value 1 custom style windows<br />

Contribution

Your contribution will help us to improve this project.

paypal