public class ViewUtils
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ViewUtils.Clickable |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BLACK_FONT |
static int |
WHITE_FONT |
| 构造器和说明 |
|---|
ViewUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getListViewHeightBasedOnChildren(android.widget.ListView listView) |
static void |
setCommentContentFormat(android.widget.TextView textView,
com.app.dynamic.presenter.bo.CommentBO commentBO,
int commentStyle,
android.view.View.OnClickListener contentClickListener,
android.view.View.OnClickListener atUserClickListener)
只对评论内容进行样式设置
|
static void |
setCommentFormat(android.widget.TextView textView,
com.app.dynamic.presenter.bo.CommentBO commentBO,
int commentStyle,
android.view.View.OnClickListener userClickListener,
android.view.View.OnClickListener atUserClickListener,
android.view.View.OnClickListener contentClickListener) |
public static final int WHITE_FONT
public static final int BLACK_FONT
public static void setCommentFormat(@NonNull
android.widget.TextView textView,
@NonNull
com.app.dynamic.presenter.bo.CommentBO commentBO,
int commentStyle,
@Nullable
android.view.View.OnClickListener userClickListener,
@Nullable
android.view.View.OnClickListener atUserClickListener,
@Nullable
android.view.View.OnClickListener contentClickListener)
public static void setCommentContentFormat(@NonNull
android.widget.TextView textView,
@NonNull
com.app.dynamic.presenter.bo.CommentBO commentBO,
int commentStyle,
@Nullable
android.view.View.OnClickListener contentClickListener,
android.view.View.OnClickListener atUserClickListener)
textView - commentBO - commentStyle - contentClickListener - public static int getListViewHeightBasedOnChildren(android.widget.ListView listView)