issues测试以及整理
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user