Skip to content

Commit a650e7b

Browse files
Migrated To AndroidX
2 parents 15f6f3d + f13c868 commit a650e7b

File tree

1 file changed

+38
-42
lines changed

1 file changed

+38
-42
lines changed

README.md

Lines changed: 38 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,54 @@
1-
# PostMessageVie [![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15) [![Known Vulnerabilities](https://snyk.io/test/github/TutorialsAndroid/Postui/badge.svg?targetFile=postui%2Fbuild.gradle)](https://snyk.io/test/github/TutorialsAndroid/Postui?targetFile=postui%2Fbuild.gradle) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Postui-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7580)
1+
![](https://github.com/TutorialsAndroid/MessageView/blob/master/messageViewLogo.png)
22

3-
PostMessageView helps you to create chat message view or a social media message view quickly like a typical chatting application or social post view
3+
# MessageView [![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MessageView-orange.svg?style=flat)](https://android-arsenal.com/details/1/7580)
4+
5+
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
46
Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
57

8+
`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.`
9+
610
**Library Available at JitPack.io**
711

8-
[![](https://jitpack.io/v/TutorialsAndroid/Postui.svg)](https://jitpack.io/#TutorialsAndroid/Postui)
12+
[![](https://jitpack.io/v/TutorialsAndroid/MessageView.svg)](https://jitpack.io/#TutorialsAndroid/MessageView)
913

1014
## Features
1115
1. Can have any child inside of it.
12-
2. You can change color of `PostMessageView` normal and pressed.
16+
2. You can change color of `MessageView` normal and pressed.
1317
3. Adjustable arrow position (top, bottom, left, right)
1418
4. Adjustable arrow gravity (start, end, center)
15-
5. Post view without arrow
19+
5. Message view without arrow
1620

1721
### Sample Screen
18-
![](https://github.com/TutorialsAndroid/Postui/blob/master/art/device-2019-03-17-130446.png)
22+
![](https://github.com/TutorialsAndroid/MessageView/blob/master/art/device-2019-03-17-130446.png)
1923

2024
### Installation
2125
add gradle dependency to your dependency list:
2226

2327
Add it in your root build.gradle at the end of repositories:
2428

25-
``` groovy
26-
allprojects {
29+
allprojects {
2730
repositories {
2831
...
2932
maven { url 'https://jitpack.io' }
3033
}
3134
}
32-
```
3335
Step 2. Add the dependency
34-
``` groovy
35-
dependencies {
36-
implementation 'com.github.TutorialsAndroid:Postui:v0.1'
37-
}
38-
```
36+
37+
dependencies {
38+
implementation 'com.github.TutorialsAndroid:MessageView:v1.0.19'
39+
}
3940

4041
### Use
41-
1. Include `PostMessageView` in your xml of adapter view with content inside.
42+
1. Include `MessageView` in your xml of adapter view with content inside.
4243

4344
``` xml
44-
<com.kinda.postui.PostMessageView
45+
<com.kinda.messageview.MessageView
4546
xmlns:app="http://schemas.android.com/apk/res-auto"
4647
android:layout_width="match_parent"
4748
android:layout_height="wrap_content"
48-
app:cmv_backgroundColor="#88BABABA"
49-
app:cmv_backgroundColorPressed="#FFBABABA"
50-
app:cmv_cornerRadius="3dp" >
49+
app:backgroundColor="#88BABABA"
50+
app:backgroundColorPressed="#FFBABABA"
51+
app:cornerRadius="3dp" >
5152

5253
<TextView
5354
android:id="@+id/text"
@@ -57,37 +58,34 @@ dependencies {
5758

5859
<!-- ... -->
5960

60-
</com.kinda.postui.PostMessageView>
61+
</com.kinda.messageview.MessageView>
6162
```
6263

63-
6464
### Customization
6565
Attributes:
6666

6767
``` xml
68-
app:cmv_arrowGravity="start|end|center"
69-
app:cmv_arrowPosition="right|left|top|bottom"
70-
app:cmv_arrowMargin="3dp"
71-
app:cmv_contentPadding="10dp"
72-
app:cmv_backgroundColor="#88BABABA"
73-
app:cmv_backgroundColorPressed="#FFBABABA"
74-
app:cmv_cornerRadius="3dp"
75-
app:cmv_showArrow="true|false"
68+
app:arrowGravity="start|end|center"
69+
app:arrowPosition="right|left|top|bottom"
70+
app:arrowMargin="3dp"
71+
app:contentPadding="10dp"
72+
app:backgroundColor="#88BABABA"
73+
app:backgroundColorPressed="#FFBABABA"
74+
app:cornerRadius="3dp"
75+
app:showArrow="true|false"
7676
```
7777

7878
Description:
7979

8080

81-
- `cmv_arrowGravity` controls relative position of arrow. possible values are `start`,`end` and `center`. default is `left`.
82-
- `cmv_arrowPosition` controls poition of the arrow outside the box. possible values are `right`,`left`,`top` and `bottom`. default is `left`.
83-
- `cmv_arrowMargin` controls margin of arrow. If `cmv_arrowPosition` is `left` or `right` it controls top and bottom margin. else it controls left and right margin.
84-
- `cmv_contentPadding` adjusts padding of content within the box.
85-
- `cmv_backgroundColor` sets background color of `ChatMessageView` in normal mode including arrow.
86-
- `cmv_backgroundColorPressed` sets background color of `ChatMessageView` in pressed mode including arrow.
87-
- `cmv_cornerRadius` sets corner radius of the box.
88-
- `cmv_showArrow` shows / hides arrow from `PostMessageView`.
89-
90-
81+
- `arrowGravity` controls relative position of arrow. possible values are `start`,`end` and `center`. default is `left`.
82+
- `arrowPosition` controls poition of the arrow outside the box. possible values are `right`,`left`,`top` and `bottom`. default is `left`.
83+
- `arrowMargin` controls margin of arrow. If `arrowPosition` is `left` or `right` it controls top and bottom margin. else it controls left and right margin.
84+
- `contentPadding` adjusts padding of content within the box.
85+
- `backgroundColor` sets background color of `MessageView` in normal mode including arrow.
86+
- `backgroundColorPressed` sets background color of `MessageView` in pressed mode including arrow.
87+
- `cornerRadius` sets corner radius of the box.
88+
- `showArrow` shows / hides arrow from `MessageView`.
9189

9290
----
9391
developed to make programming easy.
@@ -99,7 +97,7 @@ by Akshay Sunil Masram (akshaysunilmasram@yahoo.com)
9997
* [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
10098

10199
```
102-
Copyright 2019 Postui
100+
Copyright 2019 MessageView
103101
104102
Licensed under the Apache License, Version 2.0 (the "License");
105103
you may not use this file except in compliance with the License.
@@ -112,5 +110,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
112110
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113111
See the License for the specific language governing permissions and
114112
limitations under the License.
115-
116-

0 commit comments

Comments
 (0)