Skip to content

Ayan4044/Snacky

Repository files navigation

"# SnackyMessages"

Screenshot

Customized Snackbar messages messages and action

 maven { url 'https://jitpack.io' }
 implementation 'com.github.Ayan4044:Snacky:0.0.8'
For Kotlin
val snacky=SnackyMessages()
snacky.ShowSnackBarEror(this,"Something went wrong",R.id.mainlayout)



    snacky.SnackbarActionActivity(this,"Message",R.id.mainlayout,"Retry",object:SnackyMessages.ExecuteFunction{
        override fun execute() {
            calculateTip();
        }
    })

Screenshot

     snacky.ShowSnackbarSuccessLite(fragmentFeedbackView,"Feedback Submitted!!",R.id.feedback_fragment)

Screenshot

For Java
 snackyMessages.SnackbarActionActivity(this, "Something went wrong", R.id.mainlayout, "Retry", new SnackyMessages.ExecuteFunction() {
        @Override
        public void execute() {
               onBackPressed();
        }
    });

  snackyMessages.ShowSnackBarEror(fragmentFormTwoView,"Please Select a Blood Group",R.id.fragmentRequest)

Screenshot