Skip to content

Example 1

M. Emre Davarcı edited this page Jun 4, 2017 · 4 revisions
 /*
 * rl is the layout we are working on.
 */
 RelativeLayout rl = (RelativeLayout) findViewById(R.id.myLayout) ;

 Noty.init(MainActivity.this, "Undo this action?", rl,
           Noty.WarningStyle.ACTION)
           .setActionText("UNDO")
           .setWarningBoxBgColor("#a64dff")
           .setWarningTappedColor("#b366ff")
           .setWarningBoxPosition(Noty.WarningPos.BOTTOM)
           .setWarningBoxRadius(80,80,80,80)
           .setWarningBoxMargins(15,15,15,10)
           .setAnimation(Noty.RevealAnim.SLIDE_UP, Noty.DismissAnim.BACK_TO_BOTTOM, 400,400)
           .show();
Clone this wiki locally