Commit 4f8cea18 authored by jianglx's avatar jianglx

im 界面初修改

parent 76730820
......@@ -18,5 +18,6 @@ public class CustomerListAdapter extends BaseQuickAdapter<Customer, BaseViewHold
protected void convert(BaseViewHolder helper, Customer item) {
helper.setText(R.id.tv_name, item.getName());
helper.setText(R.id.tv_state, "在线");
helper.setText(R.id.tv_last_msg, item.getLastMsg());
}
}
......@@ -18,6 +18,10 @@ public class Customer {
@DatabaseField
private String createTime;
private String lastMsg ;
private long lastMsgTimes;
public String getId() {
return id;
}
......@@ -65,4 +69,20 @@ public class Customer {
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getLastMsg() {
return lastMsg;
}
public void setLastMsg(String lastMsg) {
this.lastMsg = lastMsg;
}
public long getLastMsgTimes() {
return lastMsgTimes;
}
public void setLastMsgTimes(long lastMsgTimes) {
this.lastMsgTimes = lastMsgTimes;
}
}
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<corners android:radius="20dp" />
<solid android:color="#FFB74B" />
</shape>
\ No newline at end of file
......@@ -15,11 +15,20 @@
android:gravity="center_vertical"
android:orientation="horizontal">
<com.base.utils.ui.image.round.RoundImageView
android:id="@+id/riv_header"
android:layout_width="@dimen/dp40"
android:layout_height="@dimen/dp40"
android:layout_marginLeft="@dimen/dp_10" />
<RelativeLayout
android:layout_width="@dimen/size_40"
android:layout_height="@dimen/size_40"
android:layout_marginLeft="@dimen/dp_10"
android:background="@drawable/bg_circle_yellow">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/icon_logo_white" />
</RelativeLayout>
<LinearLayout
android:layout_width="wrap_content"
......@@ -35,15 +44,25 @@
android:text="牧之"
android:textSize="@dimen/sp_14" />
<TextView
android:id="@+id/tv_last_msg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_3"
android:ellipsize="end"
android:maxLength="10"
android:text="感谢您" />
</LinearLayout>
<TextView
android:id="@+id/tv_state"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/dp_10"
android:layout_marginRight="@dimen/dp_10"
android:layout_weight="1"
android:gravity="right|center_vertical"
android:gravity="right|top"
android:text="在线"
android:textColor="@color/gray"
android:textSize="@dimen/text_12" />
......
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 to comment