Skip to content

Commit

Permalink
prepare release messagelist 0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
KenChoi authored and KenChoi committed Dec 22, 2017
1 parent 87222ed commit 9a52980
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
11 changes: 8 additions & 3 deletions docs/Android/custom_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class TxtViewHolder<MESSAGE extends IMessage>

```java
MsgListAdapter adapter = new MsgListAdapter<>("0", holdersConfig, imageLoader);
// The first parameter is ViewType,must not set number in 0-12
// The first parameter is ViewType,must not set number between 0 // and 12, because we are already taken.
// the second is resource id
// the third is sender or not
// the forth is the Class object of custom view holder.
Expand All @@ -98,11 +98,16 @@ adapter.addCustomMsgType(13, config1);

```java
public class MyMessage implements IMessage {
MessageType type = MessageType.SEND_TEXT;
private int type;
// in this example the viewType is 13
public void setType(int viewType) {
this.type.setCustomType(viewType);
this.type = viewType;
}

@Override
public int getType() {
return this.type;
}
}
```

Expand Down
11 changes: 8 additions & 3 deletions docs/Android/custom_layout_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,16 @@ adapter.addCustomMsgType(13, config1);

```java
public class MyMessage implements IMessage {
MessageType type = MessageType.SEND_TEXT;
// 本例中 viewType 值为 13
private int type;
// 本例中 viewType 13
public void setType(int viewType) {
this.type.setCustomType(viewType);
this.type = viewType;
}

@Override
public int getType() {
return this.type;
}
}
```

8 changes: 4 additions & 4 deletions docs/Android/message_list_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ We have support several ways to add dependency. You can choose one of them.

- Gradle:
```groovy
compile 'cn.jiguang.imui:messagelist:0.5.5'
compile 'cn.jiguang.imui:messagelist:0.5.7'
```

- Maven:
```groovy
<dependency>
<groupId>cn.jiguang.imui</groupId>
<artifactId>messagelist</artifactId>
<version>0.5.5</version>
<version>0.5.7</version>
<type>pom</type>
</dependency>
```

- JitPack
- JitPack(^0.4.8 must add JitPack dependency.)
```groovy
// Add in project's build.gradle
allprojects {
Expand All @@ -35,7 +35,7 @@ allprojects {
// Add in module's build.gradle
dependencies {
compile 'com.github.jpush:imui:0.6.1'
compile 'com.github.jpush:imui:0.6.5'
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/Android/message_list_usage_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
- Gradle

```groovy
compile 'cn.jiguang.imui:messagelist:0.5.5'
compile 'cn.jiguang.imui:messagelist:0.5.7'
```

- Maven
```
<dependency>
<groupId>cn.jiguang.imui</groupId>
<artifactId>messagelist</artifactId>
<version>0.5.5</version>
<version>0.5.7</version>
<type>pom</type>
</dependency>
```

- JitPack
- JitPack(由于 0.4.8 引入了 AndroidEmoji,所以 0.4.8 以上版本需要添加 jitpack 依赖 )
```groovy
// project/build.gradle
allprojects {
Expand All @@ -34,7 +34,7 @@ allprojects {
// module/build.gradle
dependencies {
compile 'com.github.jpush:imui:0.6.1'
compile 'com.github.jpush:imui:0.6.5'
}
```

Expand Down

0 comments on commit 9a52980

Please sign in to comment.