Skip to content

Example 4

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, "No internet connection!", rl,
          Noty.WarningStyle.SIMPLE)
          .setAnimation(Noty.RevealAnim.SLIDE_UP, Noty.DismissAnim.BACK_TO_BOTTOM, 400,400)
          .setWarningInset(0,0,0,0)
          .setWarningBoxRadius(0,0,0,0)
          .show();
Clone this wiki locally