Skip to content

Commit 7eeede2

Browse files
committed
revise readme
1 parent 58646ec commit 7eeede2

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ You Can Use The Latest Version:[![](https://jitpack.io/v/CPPAlien/ChatKeyboard
3434

3535
### How to use
3636

37-
1, Use `ChatKeyboardLayout` make your layout get keyboard ability.
37+
##### 1, ChatKeyboardLayout
38+
39+
make your layout get keyboard ability.
3840

3941
```
4042
<cn.hadcn.keyboard.ChatKeyboardLayout
@@ -53,15 +55,15 @@ You Can Use The Latest Version:[![](https://jitpack.io/v/CPPAlien/ChatKeyboard
5355

5456

5557

56-
2, Style and Custom
58+
##### 2, Style and Custom
5759

5860
There are three styles you can set.
5961

60-
```
61-
| chat_style | text_emoticon | text_only |
62-
|:----------------------:|:--------------------------:|:---------------------:|
63-
|![](raw/chat_style.png) | ![](raw/text_emoticon.png) | ![](raw/text_only.png)|
64-
```
62+
63+
| chat_style | text_emoticon | text_only |
64+
| :---------------------: | :------------------------: | :--------------------: |
65+
| ![](raw/chat_style.png) | ![](raw/text_emoticon.png) | ![](raw/text_only.png) |
66+
6567

6668
You can use `app:keyboardStyle` in xml to set or `setKeyboardStyle(@KeyboardStyle int style)` method to set, once you set, the keyboard style will change.
6769

@@ -77,7 +79,7 @@ There are also some attributes you can custom the icons.
7779

7880

7981

80-
3, Emoticons and Stickers
82+
##### 3, Emoticons and Stickers
8183

8284
```java
8385
if (!ChatKeyboardLayout.isEmoticonInitSuccess(this)) {
@@ -91,7 +93,8 @@ if (!ChatKeyboardLayout.isEmoticonInitSuccess(this)) {
9193

9294

9395

94-
4, Keyboard Listener
96+
##### 4, Keyboard Listener
97+
9598
```java
9699
public interface OnChatKeyBoardListener {
97100
/**
@@ -158,7 +161,7 @@ You can use `SimpleOnChatKeyboardListener` instead of the interface above, so yo
158161

159162
### Other usage
160163

161-
please refer to the demo code
164+
Please refer to the demo code
162165

163166

164167

raw/chat_style.png

35.4 KB
Loading

raw/text_emoticon.png

72.4 KB
Loading

raw/text_only.png

31.7 KB
Loading

0 commit comments

Comments
 (0)