Commit 69673b74061f7132df8c0e725a7c3dc84cbdcd7c

Authored by 韩亚云
1 parent 3fe478bb

我的活动页面UI修改

moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/adapter/MyRecordAdapter.java
... ... @@ -11,6 +11,7 @@ import android.widget.TextView;
11 11  
12 12  
13 13 import com.cnlive.moudle.pedometer.ui.activity.RaceRecordActivity;
  14 +import com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView;
14 15 import com.example.moudle_pedometer.R;
15 16  
16 17 import java.util.ArrayList;
... ... @@ -37,9 +38,9 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView
37 38  
38 39 @Override
39 40 public void onBindViewHolder(@NonNull MyViewHolder myViewHolder, int i) {
40   -// myViewHolder.discussionAvatarView.initDatas(mDatas);
41 41 myViewHolder.my_record.setOnClickListener(v -> RaceRecordActivity.newInstance(context));
42 42 // myViewHolder.check_raking.setOnClickListener(v -> );
  43 +
43 44 }
44 45  
45 46  
... ... @@ -52,12 +53,12 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView
52 53  
53 54 TextView check_raking;
54 55 TextView my_record;
55   -// private DiscussionAvatarView discussionAvatarView;
  56 + FivePersonIconView join_person;
56 57 public MyViewHolder(@NonNull View itemView) {
57 58 super(itemView);
58 59 check_raking = itemView.findViewById(R.id.check_raking);
59 60 my_record = itemView.findViewById(R.id.my_record);
60   -// discussionAvatarView = itemView.findViewById(R.id.daview);
  61 + join_person = itemView.findViewById(R.id.join_person);
61 62 }
62 63 }
63 64 }
... ...
moudle_pedometer/src/main/res/layout/item_my_record.xml
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3 xmlns:app="http://schemas.android.com/apk/res-auto"
  4 + xmlns:FivePersonIconView="http://schemas.android.com/apk/res-auto"
4 5 android:layout_width="match_parent"
5 6 android:layout_height="wrap_content"
6 7 android:layout_margin="10dp"
... ... @@ -52,10 +53,17 @@
52 53 </LinearLayout>
53 54  
54 55 <LinearLayout
55   - android:layout_width="wrap_content"
  56 + android:layout_width="match_parent"
56 57 android:layout_height="wrap_content"
  58 + android:orientation="horizontal"
57 59 android:layout_marginTop="10dp">
58 60  
  61 + <com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView
  62 + android:id="@+id/join_person"
  63 + android:layout_width="150dp"
  64 + android:layout_height="40dp"
  65 + android:layout_marginRight="10dp"
  66 + FivePersonIconView:showRightFlag="false"/>
59 67  
60 68 <TextView
61 69 android:layout_width="wrap_content"
... ...
moudle_pedometer/src/main/res/layout/layout_run_detail_street.xml
... ... @@ -339,7 +339,7 @@
339 339 android:layout_width="match_parent"
340 340 android:layout_height="40dp"
341 341 android:layout_marginRight="10dp"
342   - FivePersonIconView:showRightFlag="true"></com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView>
  342 + FivePersonIconView:showRightFlag="true"/>
343 343  
344 344  
345 345 </LinearLayout>
... ...