Skip to content

Commit fa13b32

Browse files
updated dependencies and changed the library name to message view
1 parent 32b921f commit fa13b32

File tree

4 files changed

+61
-28
lines changed

4 files changed

+61
-28
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright {2019} {Akshay Sunil Masram}
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

+60-27
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# PostMessageView
2-
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-
Its a container view, so you can add any type of message or social post such as TextView or any customize TextView, ImageView, etc.
1+
# MessageView
2+
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.**
7+
8+
**Library Available at JitPack.io**
9+
410

511

612
## Features
@@ -11,28 +17,39 @@ Its a container view, so you can add any type of message or social post such as
1117
5. Post view without arrow
1218

1319
### Sample Screen
14-
![PostMessageView]()
20+
![](https://github.com/TutorialsAndroid/Postui/blob/master/art/device-2019-03-17-130446.png)
1521

1622
### Installation
1723
add gradle dependency to your dependency list:
1824

25+
Add it in your root build.gradle at the end of repositories:
26+
27+
``` groovy
28+
allprojects {
29+
repositories {
30+
...
31+
maven { url 'https://jitpack.io' }
32+
}
33+
}
34+
```
35+
Step 2. Add the dependency
1936
``` groovy
2037
dependencies {
21-
compile 'me.himanshusoni.chatmessageview:chat-message-view:1.0.7'
38+
implementation 'com.github.TutorialsAndroid:MessageView:v1.0.19'
2239
}
2340
```
2441

2542
### Use
26-
1. Include `PostMessageView` in your xml of adapter view with content inside.
43+
1. Include `MessageView` in your xml of adapter view with content inside.
2744

2845
``` xml
2946
<com.kinda.messageview.MessageView
3047
xmlns:app="http://schemas.android.com/apk/res-auto"
3148
android:layout_width="match_parent"
3249
android:layout_height="wrap_content"
33-
app:cmv_backgroundColor="#88BABABA"
34-
app:cmv_backgroundColorPressed="#FFBABABA"
35-
app:cmv_cornerRadius="3dp" >
50+
app:backgroundColor="#88BABABA"
51+
app:backgroundColorPressed="#FFBABABA"
52+
app:cornerRadius="3dp" >
3653

3754
<TextView
3855
android:id="@+id/text"
@@ -50,32 +67,48 @@ dependencies {
5067
Attributes:
5168

5269
``` xml
53-
app:cmv_arrowGravity="start|end|center"
54-
app:cmv_arrowPosition="right|left|top|bottom"
55-
app:cmv_arrowMargin="3dp"
56-
app:cmv_contentPadding="10dp"
57-
app:cmv_backgroundColor="#88BABABA"
58-
app:cmv_backgroundColorPressed="#FFBABABA"
59-
app:cmv_cornerRadius="3dp"
60-
app:cmv_showArrow="true|false"
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"
6178
```
6279

6380
Description:
6481

65-
66-
- `cmv_arrowGravity` controls relative position of arrow. possible values are `start`,`end` and `center`. default is `left`.
67-
- `cmv_arrowPosition` controls poition of the arrow outside the box. possible values are `right`,`left`,`top` and `bottom`. default is `left`.
68-
- `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.
69-
- `cmv_contentPadding` adjusts padding of content within the box.
70-
- `cmv_backgroundColor` sets background color of `ChatMessageView` in normal mode including arrow.
71-
- `cmv_backgroundColorPressed` sets background color of `ChatMessageView` in pressed mode including arrow.
72-
- `cmv_cornerRadius` sets corner radius of the box.
73-
- `cmv_showArrow` shows / hides arrow from `ChatMessageView`.
74-
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`.
7590

7691

7792
----
7893
developed to make programming easy.
7994

8095
by Akshay Sunil Masram ([email protected])
8196

97+
## License
98+
99+
* [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
100+
101+
```
102+
Copyright 2019 MessageView
103+
104+
Licensed under the Apache License, Version 2.0 (the "License");
105+
you may not use this file except in compliance with the License.
106+
You may obtain a copy of the License at
107+
108+
http://www.apache.org/licenses/LICENSE-2.0
109+
110+
Unless required by applicable law or agreed to in writing, software
111+
distributed under the License is distributed on an "AS IS" BASIS,
112+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113+
See the License for the specific language governing permissions and
114+
limitations under the License.

screenshot/screen1.jpg

-41.1 KB
Binary file not shown.

screenshot/screen2.jpg

-47.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)