Skip to content

song314/NiftyDialogEffects

Repository files navigation

NiftyDialogEffects

Nifty Modal Dialog Effects look like this(Nifty Modal Window Effects)

ScreenShot

Image . Image . Image . Image

Quick start

NiftyDialogBuilderdialogBuilder=NiftyDialogBuilder.getInstance(this); dialogBuilder .withTitle("Modal Dialog") .withMessage("This is a modal Dialog.") .show();

Config

dialogBuilder .withTitle("Modal Dialog") .withTitleColor("#FFFFFF") .withDividerColor("#11000000") .withMessage("This is a modal Dialog.") .withMessageColor("#FFFFFF") .withIcon(getResources().getDrawable(R.drawable.icon)) .withEffect(effect) .withButton1Text("OK") .withButton2Text("Cancel") .setCustomView(viewresId,context) .setButton1Click(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Toast.makeText(v.getContext(),"i'm btn1",Toast.LENGTH_SHORT).show()} }) .setButton2Click(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Toast.makeText(v.getContext(),"i'm btn2",Toast.LENGTH_SHORT).show()} }) .show();

Effects

Fadein, Slideleft, Slidetop, SlideBottom, Slideright, Fall, Newspager, Fliph, Flipv, RotateBottom, RotateLeft, Slit, Shake, Sidefill

(See The Effect)

About

Nifty Modal Dialog Effects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published