|
|
@@ -38,6 +38,7 @@ public class CommonUserItemView extends ConstraintLayout {
|
|
|
|
|
|
public CommonUserItemView(Context context) {
|
|
|
super(context);
|
|
|
+ initView(context);
|
|
|
}
|
|
|
|
|
|
public CommonUserItemView(Context context, AttributeSet attrs) {
|
|
|
@@ -180,6 +181,10 @@ public class CommonUserItemView extends ConstraintLayout {
|
|
|
titleText.setText(title);
|
|
|
}
|
|
|
|
|
|
+ public void setTitleTextColor(@ColorInt int color){
|
|
|
+ titleText.setTextColor(color);
|
|
|
+ }
|
|
|
+
|
|
|
public void setDetailText(String detail){
|
|
|
detailText.setText(detail);
|
|
|
}
|
|
|
@@ -191,4 +196,12 @@ public class CommonUserItemView extends ConstraintLayout {
|
|
|
public String getDetailText(){
|
|
|
return detailText.getText().toString();
|
|
|
}
|
|
|
+
|
|
|
+ public void setLeftImageShow(boolean isShow){
|
|
|
+ leftImage.setVisibility(isShow ? VISIBLE : GONE);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRightImageShow(boolean isShow){
|
|
|
+ rightImage.setVisibility(isShow ? VISIBLE : GONE);
|
|
|
+ }
|
|
|
}
|