Sei sulla pagina 1di 6

PerfectDialog (/details/1/6486)

 5 (https://github.com/ankitdubey021/MyAlertDialog/stargazers?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=6486) 1

(https://github.com/ankitdubey021/MyAlertDialog/watchers?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=6486)  4

(https://github.com/ankitdubey021/MyAlertDialog/network?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=6486)  1

(https://github.com/ankitdubey021/MyAlertDialog/issues?utm_source=android-

arsenal.com&utm_medium=referral&utm_campaign=6486)

 (https://facebook.com/sharer.php?
General u=https://android-
Category
arsenal.com/details/1/6486)
Free (/free)

Tag
 (https://twitter.com/intent/twe
arsenal.com/details/1/6486&text=The%20An
Dialogs (/tag/30)

License %20Dialogs%20-%20PerfectDialog
MIT License (http://opensource.org/licenses/MIT?utm_source=android-arsenal.com&utm_medium=referr

 (http://news.ycombinator.com/submitlink
al&utm_campaign=6486)

arsenal.com/details/1/6486&t=The%20Andro
Min SDK
14 (Android 4.0–4.0.2 Ice Cream Sandwich) (/api?level=14)

Registered
%20Dialogs%20-
Nov 23, 2017

Favorites
 (https://plus.google.com/share?
0 url=https://android-
Link arsenal.com/details/1/6486)
https://github.com/ankitdubey021/MyAlertDialog (https://github.com/ankitdubey021/MyAlertDialog?utm_s

 (https://reddit.com/subm
ource=android-arsenal.com&utm_medium=referral&utm_campaign=6486)

arsenal.com/details/1/6486&title=The%20An
See also
BubbleAlert (/details/1/6017)
Wink (/details/1/4282) %20Dialogs%
LongPressPopup (/details/1/4689)
MissMe (/details/1/6825)
SimpleDialogFragment (/details/1/5231)

Additional

Language
Java

Version
1.0.3 (Dec 8, 2017) (https://github.com/ankitdubey021/MyAlertDialog/releases/tag/1.0.3?utm_source=and
roid-arsenal.com&utm_medium=referral&utm_campaign=6486)

Created
Nov 22, 2017

Updated
May 22, 2018

Owner
Ankit Dubey (ankitdubey021) (/user/ankitdubey021)

Contributors
2 (https://github.com/ankitdubey021/MyAlertDialog/graphs/contributors?utm_source=android-arsenal.com
&utm_medium=referral&utm_campaign=6486)

Activity

Badge
 Generate

Download
 Source code
 APK file

Advertisement
     

A Free stand-alone desktop


application designed to be
CodePilot.ai the best search experience
possible.

MyAlertDialog
(https://github.com/ankitdubey021/MyAlertDialog/blob/master/snapshot%5B1%5D.png?
utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=6486)

Releases

this is the first release of library, which contains buttons in rectangle form.

compile 'com.github.ankitdubey021:MyAlertDialog:1.0.2'

In this release, buttons are added in circular shape.

compile 'com.github.ankitdubey021:MyAlertDialog:1.0.3'

Simple Default Dialog


+ new EasyDialog.Builder(this)
.setTitle("Exit!")
.setSubtitle("Are you sure?")
.isCancellable(true)
.setCancelBtnColor("#008000")
.setIcon(Icon.INFO)
.setConfirmBtn("yes", new EasyDialogListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Toast.makeText(getApplicationContext(),"done",Toast.LENGTH_LONG).sh
}
})
.setCancelBtn("no", new EasyDialogListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Toast.makeText(getApplicationContext(),"cancelled!",Toast.LENGTH_LO
}
})
.build();

Custom Alert Dialog

+ new EasyCustomDialog.Builder(this,"Exit!")
.setSubTitle("Are you Sure?")
//.setHeader("Hello Guest")
//.setIcon(getResources().getDrawable(R.drawable.ic_error_outline_black_24d
//.setIcon(ContextCompat.getDrawable(this, R.drawable.animlogo))
.setPositiveBtnText("Yes")
.setNegativeBtnText("No")
.onConfirm(new EasyCustomDialogListener() {
@Override
public void execute() {
Toast.makeText(getApplicationContext(),"Ok",Toast.LENGTH_LONG).show
}
})
.onCancel(new EasyCustomDialogListener() {
@Override
public void execute() {
Toast.makeText(getApplicationContext(),"Cancel",Toast.LENGTH_LONG).
}
})
.build();

MIT License

Copyright (c) 2017 Ankit Dubey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Follow us on Twitter (https://twitter.com/Android_Arsenal?utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=6486)

Read us in Telegram (https://telegram.me/AndroidArsenal?utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=6486)

Get Android app on Google Play (https://play.google.com/store/apps/details?


id=com.android_arsenal.androidarsenal&utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=6486)

Stay informed with Pushbullet (https://www.pushbullet.com/channel?tag=android_arsenal&utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=6486)

Created by Vladislav Bauer (https://github.com/vbauer?utm_source=android-


arsenal.com&utm_medium=referral&utm_campaign=6486)
 (https://twitter.com/BauerVlad?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=6486)
 (https://www.linkedin.com/in/vladislavbauer?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=6486)
 (https://www.paypal.me/VladislavBauer?utm_source=android-
arsenal.com&utm_medium=referral&utm_campaign=6486)
© 2014-2018 - Android Arsenal (/) | Privacy (/privacy)

Potrebbero piacerti anche