Skip to content

Commit 60d6846

Browse files
Merge remote-tracking branch 'origin/master'
# Conflicts: # README.md
2 parents fa13b32 + 570723e commit 60d6846

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed

README.md

+33-31
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# MessageView
1+
# PostMessageView [![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)
22

3-
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
4-
Its a container view, so you can add any type of message or social post such as TextView or ImageView, etc.
5-
6-
**Library name change from Postui to messageview.**
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
4+
Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
75

86
**Library Available at JitPack.io**
97

10-
8+
[![](https://jitpack.io/v/TutorialsAndroid/Postui.svg)](https://jitpack.io/#TutorialsAndroid/Postui)
119

1210
## Features
1311
1. Can have any child inside of it.
@@ -35,21 +33,21 @@ allprojects {
3533
Step 2. Add the dependency
3634
``` groovy
3735
dependencies {
38-
implementation 'com.github.TutorialsAndroid:MessageView:v1.0.19'
36+
implementation 'com.github.TutorialsAndroid:Postui:v0.1'
3937
}
4038
```
4139

4240
### Use
43-
1. Include `MessageView` in your xml of adapter view with content inside.
41+
1. Include `PostMessageView` in your xml of adapter view with content inside.
4442

4543
``` xml
46-
<com.kinda.messageview.MessageView
44+
<com.kinda.postui.PostMessageView
4745
xmlns:app="http://schemas.android.com/apk/res-auto"
4846
android:layout_width="match_parent"
4947
android:layout_height="wrap_content"
50-
app:backgroundColor="#88BABABA"
51-
app:backgroundColorPressed="#FFBABABA"
52-
app:cornerRadius="3dp" >
48+
app:cmv_backgroundColor="#88BABABA"
49+
app:cmv_backgroundColorPressed="#FFBABABA"
50+
app:cmv_cornerRadius="3dp" >
5351

5452
<TextView
5553
android:id="@+id/text"
@@ -59,34 +57,36 @@ dependencies {
5957

6058
<!-- ... -->
6159

62-
</com.kinda.messageview.MessageView>
60+
</com.kinda.postui.PostMessageView>
6361
```
6462

6563

6664
### Customization
6765
Attributes:
6866

6967
``` xml
70-
app:arrowGravity="start|end|center"
71-
app:arrowPosition="right|left|top|bottom"
72-
app:arrowMargin="3dp"
73-
app:contentPadding="10dp"
74-
app:backgroundColor="#88BABABA"
75-
app:backgroundColorPressed="#FFBABABA"
76-
app:cornerRadius="3dp"
77-
app:showArrow="true|false"
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"
7876
```
7977

8078
Description:
8179

82-
- `arrowGravity` controls relative position of arrow. possible values are `start`,`end` and `center`. default is `left`.
83-
- `arrowPosition` controls poition of the arrow outside the box. possible values are `right`,`left`,`top` and `bottom`. default is `left`.
84-
- `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.
85-
- `contentPadding` adjusts padding of content within the box.
86-
- `backgroundColor` sets background color of `ChatMessageView` in normal mode including arrow.
87-
- `backgroundColorPressed` sets background color of `ChatMessageView` in pressed mode including arrow.
88-
- `cornerRadius` sets corner radius of the box.
89-
- `showArrow` shows / hides arrow from `PostMessageView`.
80+
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+
9090

9191

9292
----
@@ -99,7 +99,7 @@ by Akshay Sunil Masram ([email protected])
9999
* [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
100100

101101
```
102-
Copyright 2019 MessageView
102+
Copyright 2019 Postui
103103
104104
Licensed under the Apache License, Version 2.0 (the "License");
105105
you may not use this file except in compliance with the License.
@@ -111,4 +111,6 @@ Unless required by applicable law or agreed to in writing, software
111111
distributed under the License is distributed on an "AS IS" BASIS,
112112
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113113
See the License for the specific language governing permissions and
114-
limitations under the License.
114+
limitations under the License.
115+
116+

0 commit comments

Comments
 (0)