Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.34 KB

File metadata and controls

43 lines (35 loc) · 1.34 KB

MessageView

A simple library to show custom Toast message for the success or error status. You can set sound if you want and you decide toast location on screen. Example usages can be found in example project.

Screen

Bottom Center Top-success

Feature

  • You can decide toast message location on screen.
  • You can set sound if you want.
  • There are two different type of message type as error and success.

Gradle

repositories {
    maven {
        url "https://jitpack.io"
    }
}
dependencies {
   implementation 'com.github.ozanurkn:MessageView:0.0.3'
}

Usage

  //set click listener
     findViewById(R.id.deneme).setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View v) {

               MessageView.showErrorMessage(getContext(),getResources().getString(R.string.sample_text),true, Error.error_gets_in_the_way,State.TOP);
           }
       });