This is an Android project allowing to realize a MessageView instead of RelativeLayout in the simplest way possible.
To make a MessageView add in your layout XML and add MessageView library in your project or you can also grab it via Gradle:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Add dependencies :
dependencies {
compile 'com.github.ar-android:MessageView:1.0.0'
}
<com.ahmadrosid.lib.MessageView
android:id="@+id/message_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
MessageView messageView = (MessageView)findViewById(R.id.message_view);
messageView.setLeft();
messageView.setTitleMessages("Tittle Message");
messageView.setDecsMessages("Description messages bla bla bla");
You also can set to right
messageView.setRight();
LICENCE PercentView by Ahmad Rosid is licensed under a Apache License 2.0.