issues测试以及整理

This commit is contained in:
kehaoyuan
2018-04-02 17:51:29 +08:00
parent 414b5b3861
commit c39ba2e17e
16 changed files with 120 additions and 16 deletions

View File

@ -32,6 +32,15 @@ public class BindingAdapters {
}
}
@BindingAdapter("messageUnread")
public static void setMessageUnread(TextView view, int unreadCount) {
if (unreadCount < 100) {
view.setText(String.valueOf(unreadCount));
} else {
view.setText("99+");
}
}
@BindingAdapter("messageCommand")
public static void setMessageCommand(TextView view, String command) {
switch (command) {