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.
- 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.
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
implementation 'com.github.ozanurkn:MessageView:0.0.3'
}
//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);
}
});