AwesomeDialog


Source link: https://github.com/blennerSilva/AwesomeDialog

AwesomeDialog

This library is a set of simple wrapper classes that was created to help you easily make SCLA like dialogs.

Gradle

add jitpack to your project

allprojects {
  repositories {

maven {
 url 'https://jitpack.io' 
}

  
}
 
}
 

compile on your dependencies

dependencies {
  compile 'com.github.blennerSilva:AwesomeDialog:2.0.5' 
}
 

Wiki

General

sample module.

Dialog Types

Each Dialog has its own top color, icon, title and message + its own featured. There are 6 types of dialogs available:

AwesomeInfoDialog

You can set posite and negative buttons here. Closures can be individually set for each button (onClick of any button with closure the button will be dismissed).

 new AwesomeInfoDialog(this)

  .setTitle(R.string.app_name)

  .setMessage(R.string.app_name)

  .setColoredCircle(R.color.dialogInfoBackgroundColor)

  .setDialogIconAndColor(R.drawable.ic_dialog_info, R.color.white)

  .setCancelable(true)

  .setPositiveButtonText(getString(R.string.dialog_yes_button))

  .setPositiveButtonbackgroundColor(R.color.dialogInfoBackgroundColor)

  .setPositiveButtonTextColor(R.color.white)

  .setNeutralButtonText(getString(R.string.dialog_neutral_button))

  .setNeutralButtonbackgroundColor(R.color.dialogInfoBackgroundColor)

  .setNeutralButtonTextColor(R.color.white)

  .setNegativeButtonText(getString(R.string.dialog_no_button))

  .setNegativeButtonbackgroundColor(R.color.dialogInfoBackgroundColor)

  .setNegativeButtonTextColor(R.color.white)

  .setPositiveButtonClick(new Closure() {

@Override

public void exec() {

 //click

}

  
}
)

  .setNeutralButtonClick(new Closure() {

@Override

public void exec() {

 //click

}

  
}
)

  .setNegativeButtonClick(new Closure() {

@Override

public void exec() {

 //click

}

  
}
)

  .show();
 

AwesomeErrorDialog

Display an Error dialog with one button

  new AwesomeErrorDialog(this)

  .setTitle(R.string.app_name)

  .setMessage(R.string.app_name)

  .setColoredCircle(R.color.dialogErrorBackgroundColor)

  .setDialogIconAndColor(R.drawable.ic_dialog_error, R.color.white)

  .setCancelable(true).setButtonText(getString(R.string.dialog_ok_button))

  .setButtonBackgroundColor(R.color.dialogErrorBackgroundColor)

  .setButtonText(getString(R.string.dialog_ok_button))

  .setErrorButtonClick(new Closure() {

@Override

public void exec() {

 // click

}

  
}
)

  .show();

  
}

AwesomeProgressDialog

Display a Progress Dialog

 new AwesomeInfoDialog(this)

  .setTitle(R.string.app_name)

  .setMessage(R.string.app_name)

  .setColoredCircle(R.color.dialogInfoBackgroundColor)

  .setDialogIconAndColor(R.drawable.ic_dialog_info, R.color.white)

  .setCancelable(true)

  .show();
 

AwesomeWarningDialog

Display Warning to user with or without button

new AwesomeWarningDialog(this)

  .setTitle(R.string.app_name)

  .setMessage(R.string.app_name)

  .setColoredCircle(R.color.dialogNoticeBackgroundColor)

  .setDialogIconAndColor(R.drawable.ic_notice, R.color.white)

  .setCancelable(true)

  .setButtonText(getString(R.string.dialog_ok_button))

  .setButtonBackgroundColor(R.color.dialogNoticeBackgroundColor)

  .setButtonText(getString(R.string.dialog_ok_button))

  .setWarningButtonClick(new Closure() {

@Override

public void exec() {

 // click

}

  
}
)

  .show();
 

AwesomeNoticeDialog

Display notice to user

new AwesomeNoticeDialog(this)

  .setTitle(R.string.app_name)

  .setMessage(R.string.app_name)

  .setColoredCircle(R.color.dialogNoticeBackgroundColor)

  .setDialogIconAndColor(R.drawable.ic_notice, R.color.white)

  .setCancelable(true)

  .setButtonText(getString(R.string.dialog_ok_button))

  .setButtonBackgroundColor(R.color.dialogNoticeBackgroundColor)

  .setButtonText(getString(R.string.dialog_ok_button))

  .setNoticeButtonClick(new Closure() {

@Override

public void exec() {

 // click

}

  
}
)

  .show();

AwesomeSuccessDialog

Displays a success message, with max of three buttons

new AwesomeSuccessDialog(this)

  .setTitle(R.string.app_name)

  .setMessage(R.string.app_name)

  .setColoredCircle(R.color.dialogSuccessBackgroundColor)

  .setDialogIconAndColor(R.drawable.ic_dialog_info, R.color.white)

  .setCancelable(true)

  .setPositiveButtonText(getString(R.string.dialog_yes_button))

  .setPositiveButtonbackgroundColor(R.color.dialogSuccessBackgroundColor)

  .setPositiveButtonTextColor(R.color.white)

  .setNegativeButtonText(getString(R.string.dialog_no_button))

  .setNegativeButtonbackgroundColor(R.color.dialogSuccessBackgroundColor)

  .setNegativeButtonTextColor(R.color.white)

  .setPositiveButtonClick(new Closure() {

@Override

public void exec() {

 //click

}

  
}
)

  .setNegativeButtonClick(new Closure() {

@Override

public void exec() {

 //click

}

  
}
)

  .show();

Screenshots

Info

Error

Progress

Warning

Notice

Success

Resources

socialize-sdk-android is an Android social sharing SDK for native apps.

Official site: www.getsocialize.com

RushOrm replaces the need for SQL by mapping java classes to SQL tables.

Core features:

  • Custom fields - easily implement custom fields so that any object can be serialized to the database
  • Relationships:
    • One to one
    • One to many, save lists of children
    • Saving a parent object automatically saves it children
  • Files - easily store long text, JSON and bitmaps
  • Upgrading - database upgrading is supported through annotations removing the need for upgrade scripts

android-gesture-detectors is a gesture detector framework for multitouch handling on Android, based on Android's ScaleGestureDetector.

droidQuery is an Android port of jQuery, and is designed to be as syntactically alike as possible in Java.

ViewAnimator view with a lollipop style reveal effect. Regular animation can be set (just like the default ViewAnimator) for android < 21.

SlideDateTimePicker is an Android library that displays a single DialogFragment in which the user can select a date and a time. The user can swipe between the DatePicker and TimePicker, and the tab underline will gradually animate as the user swipes. The colors of the tab indicator and divider lines are customizable to fit your project's theme.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes