Commit 669f46a2 by tangguangrui

访问记录列表添加到访时间

parent 9be1f734
......@@ -267,6 +267,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
viewHolder.mobile.setText(bean.phone);
viewHolder.company.setText(bean.companyName);
viewHolder.staffName.setText(bean.staffName);
viewHolder.time.setText(bean.visitorTime);
viewHolder.item.setOnClickListener(view -> {
if(!TextUtils.isEmpty(bean.userUuid)) {
Intent intent = new Intent(MainActivity.this, DetailActivity.class);
......@@ -291,6 +292,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
private TextView mobile;
private TextView company;
private TextView staffName;
private TextView time;
public CustomViewHolder(@NonNull View itemView) {
super(itemView);
......@@ -299,6 +301,7 @@ public class MainActivity extends NetBaseAppCompatActivity {
staffName = itemView.findViewById(R.id.staffName);
mobile = itemView.findViewById(R.id.mobile);
company = itemView.findViewById(R.id.company);
time = itemView.findViewById(R.id.time);
}
}
}
......@@ -129,4 +129,28 @@
android:text="xxxxxx"/>
<TextView
android:id="@+id/timeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/tag"
android:layout_marginLeft="13dp"
android:textColor="#ABB2B7"
android:textSize="16sp"
android:layout_marginBottom="12dp"
android:layout_below="@id/comTitle"
android:text="到访时间" />
<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="15dp"
android:layout_marginBottom="12dp"
android:textSize="16sp"
android:layout_below="@id/company"
android:textColor="#2D506B"
android:text="xxxxxx"/>
</RelativeLayout>
\ No newline at end of file
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