Commit aa59c105 by 罗翻

工单详情备注查看更多

parent 062517e8
......@@ -89,6 +89,11 @@ public class CoreAdapter<M, B> extends RecyclerView.Adapter<BaseViewHolder> {
}
}
public void setViewType(@LayoutRes int type) {
this.viewType = type;
}
public void setTypeSelector(TypeSelector mTypeSelector) {
this.mTypeSelector = mTypeSelector;
this.viewType = Constants.FLAG_MULTI_VH;
......
......@@ -90,6 +90,13 @@ public class MultiOrderDetailFragment extends DataBindingFragment<FragmentMultiD
}
}
});
mBind.orderRemark.post(() -> {
if (UIUtils.isOverFlowed(mBind.orderRemark)) {
mBind.tvLookMore.setVisibility(View.VISIBLE);
} else {
mBind.tvLookMore.setVisibility(View.GONE);
}
});
mBind.tvOrderState.setText(getStaus(detail.getStatus()));
mBind.tvLookMore.setOnClickListener(o -> lookMore());
......
......@@ -179,7 +179,7 @@
android:id="@+id/tv_fujian"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_remark"
android:layout_below="@+id/rl_info_detail"
android:layout_marginBottom="10dp"
android:layout_marginTop="15dp"
android:text="@string/order_attachment"
......@@ -190,7 +190,7 @@
android:id="@+id/ll_fujian"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_remark"
android:layout_below="@+id/rl_info_detail"
android:layout_marginBottom="10dp"
android:layout_marginLeft="19dp"
android:layout_marginTop="@dimen/dp_15"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment