GitHub - TutorialsAndroid/MessageView: MessageView helps you to create chat message view or a social media message view quickly like a typical chatting application or social post view Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
Repository navigation
MessageViewPublic
About
MessageView helps you to create chat message view or a social media message view quickly like a typical chatting application or social post view Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
Topics
android-development android-library chat-ui java javascript viewResources
Readme License ActivityStars
27 starsWatchers
1 watchingForks
8 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
76 Commits
View commit history for this file.
Folders and files
Repository files navigation
MessageView
Heatic Debate App Download Now
And Don't Forget To Follow Me On Instagram
Follow me on instagram to stay up-to-date https://instagram.com/a.masram444
MessageView helps you to create chat message view or a social media post view quickly like a typical chatting application or social media post view Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
Library name change from Postui to MessageView.We have removed postui api instead of postui you can use message view api read the below docs.
Library Available at Maven Central
Please note jitpack version of this library is not maintained consider using maven central
Latest version of this library is migrated to androidx
Features
- Can have any child inside of it.
- You can change color of
MessageViewnormal and pressed. - Adjustable arrow position (top, bottom, left, right)
- Adjustable arrow gravity (start, end, center)
- Message view without arrow
Sample Screen
See the below demo.This demo shows how the Kinda App is using message view library.
Installation with JitPack
( IMPORTANT NOTE: WE HAVE STOPPED PUSHING LIBRARY TO JITPACK v5.0.19 is outdated now. SEE mavenCentral() below )
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.TutorialsAndroid:MessageView:v5.0.19'
}
Installation with mavenCentral()
Step 1. Directly add the dependency in application build.gradle file:
dependencies {
implementation 'io.github.tutorialsandroid:messageview:6.0.0'
}
Use
- Include
MessageViewin your xml of adapter view with content inside.
<com.developer.messageview.MessageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:backgroundColor="#88BABABA"
app:backgroundColorPressed="#FFBABABA"
app:cornerRadius="3dp" >
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello" />
<!-- ... -->
</com.developer.messageview.MessageView>
Customization
Attributes:
app:arrowGravity="start|end|center" app:arrowPosition="right|left|top|bottom" app:arrowMargin="3dp" app:contentPadding="10dp" app:backgroundColor="#88BABABA" app:backgroundColorPressed="#FFBABABA" app:cornerRadius="3dp" app:showArrow="true|false"
Description:
arrowGravitycontrols relative position of arrow. possible values arestart,endandcenter. default isleft.arrowPositioncontrols poition of the arrow outside the box. possible values areright,left,topandbottom. default isleft.arrowMargincontrols margin of arrow. IfarrowPositionisleftorrightit controls top and bottom margin. else it controls left and right margin.contentPaddingadjusts padding of content within the box.backgroundColorsets background color ofMessageViewin normal mode including arrow.backgroundColorPressedsets background color ofMessageViewin pressed mode including arrow.cornerRadiussets corner radius of the box.showArrowshows / hides arrow fromMessageView.
developed to make programming easy.
by Akshay Sunil Masram (akshaysunilmasram@yahoo.com )
License
Copyright 2019 MessageView
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
About
MessageView helps you to create chat message view or a social media message view quickly like a typical chatting application or social post view Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.