Skip to content

This library can be used to show alerts with Positive button Negative Button or both or a dialog with custom View

Notifications You must be signed in to change notification settings

SiddheshShetye/fragmentDialogLib

Repository files navigation

======================================================================================================================== FragmentDialog Library

This Library is developed to reduce redundunt code to show diffrenet types of Dialogs & Toasts.

This library can be used to show various types of 
1) Alert Dialogs
2) Custom View Dialogs
3) Number picker
4) Date Picker.
5) Number Picker.
6) List Dialogs.
7) Single Choice Dialogs.
8) Multichoice Dialogs.
9) Various types of toasts.
10) Progress Dialog.
11) IPhone like Progress Dialog.

To getCallBacks from AlertDialogs implement AlertButtonClickListener.
use

 DialogHelper.showDialog(....);

To getCallBacks from Custom View Dialogs implement ViewDialogListener.
Use

ViewDialogFragment.Builder to custom Custom View Dialog.

To getCallBacks from Custom Number Picker Dialog implement OnNumberSetListener.
Use

NumberPickerDialog.Builder to show a NumberPickerDialog

To getCallBacks from DatePickerDialog implement OnDateTimeSetListener.
use

DialogHelper.showDateDialog(...)

To getCallBacks from TimePickerDialog implement OnDateTimeSetListener.
use

DialogHelper.showTimeDialog(...)

To getCallBacks from SimpleListDialog, SingleChoiceListDialog and MultiChoiceListDialog implement ListDialogListener.
use

 DialogHelper.showSimpleListDialog(...)
 DialogHelper.showSingleChoiceListDialog(...)
 DialogHelper.showMultipleChoiceListDialog(...)

To Show ProgressDialog use

DialogHelper.showProgressDialog(...)
DialogHelper.closeProgressDialog()
DialogHelper.showIPhoneProgressDialog(...)
DialogHelper.closeIPhoneProgressDialog()

To show Toasts use

DialogHelper.showShortToast(...)
DialogHelper.showLongToast(...)
DialogHelper.showCustomToast(...)

About

This library can be used to show alerts with Positive button Negative Button or both or a dialog with custom View

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages