iOSDialog

General

Category
Free
Tag
Dialogs
License
N/A
Registered
Feb 21, 2018
Favorites
1
Link
https://github.com/MagicDog707/iOSDialog
See also
Debut
AwesomeDialog
CircularDialogs
Search Dialog
DistilledViewPrefs

Additional

Language
Java
Version
N/A
Created
Sep 5, 2017
Updated
Feb 20, 2018
Owner
Acciaro Gennaro Daniele (MagicDog707)
Contributors
Acciaro Gennaro Daniele (MagicDog707)
PirataFrancis
2
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

iOSDialog - iOS UIAlertView on Android

With this library you can use iOS UIAlertView on Android.


Two Buttons

One Button

To install the library just add this line to your gradle:
compile 'com.gdacciaro:iosdialog:1.0.3'

And add this where you want:

  new iOSDialogBuilder(MainActivity.this)
 .setTitle(getString(R.string.example_title))
 .setSubtitle(getString(R.string.example_subtitle))
 .setBoldPositiveLabel(true)
 .setCancelable(false)
 .setPositiveListener(getString(R.string.ok),new iOSDialogClickListener() {
     @Override
     public void onClick(iOSDialog dialog) {
  Toast.makeText(MainActivity.this,"Clicked!",Toast.LENGTH_LONG).show();
  dialog.dismiss();

     }
 })
 .setNegativeListener(getString(R.string.dismiss), new iOSDialogClickListener() {
     @Override
     public void onClick(iOSDialog dialog) {
  dialog.dismiss();
     }
 })
 .build().show();

If you liked this library, add a star to this project and feel free to make a fork!



A special thanks to Rofiq Setiawan who made a porting of iOSDialog for Xamarin. Check it out here: https://github.com/rofiqsetiawan/iOSDialog
Another special thanks to Francesco Borrelli who helped me with the implementation of the iOSDialogClickListener Here is his Linkedin profile https://www.linkedin.com/in/francesco-borrelli1/