|
@@ -2,253 +2,326 @@
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_marginTop="37dp"
|
|
|
android:gravity="center">
|
|
|
|
|
|
<FrameLayout
|
|
|
- android:layout_width="1080dp"
|
|
|
- android:layout_height="750dp"
|
|
|
+ android:layout_width="972dp"
|
|
|
+ android:layout_height="700dp"
|
|
|
android:layout_gravity="center">
|
|
|
|
|
|
-
|
|
|
<ImageView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="712dp"
|
|
|
+ android:layout_height="650dp"
|
|
|
android:background="@drawable/fragment_recommend_bg"></ImageView>
|
|
|
|
|
|
- <FrameLayout
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="564.3dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
android:layout_gravity="center"
|
|
|
- android:layout_marginLeft="40dp"
|
|
|
- android:layout_marginTop="20dp"
|
|
|
- android:layout_marginRight="40dp"
|
|
|
- android:background="@drawable/fragment_recommend_rv_round">
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
- android:id="@+id/fragment_recommend_recyclerview"
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
android:layout_gravity="center"
|
|
|
- android:orientation="vertical"></androidx.recyclerview.widget.RecyclerView>
|
|
|
- </FrameLayout>
|
|
|
-
|
|
|
+ android:layout_weight="3"
|
|
|
+ android:paddingTop="10dp">
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="42dp"
|
|
|
- android:layout_gravity="bottom"
|
|
|
- android:layout_marginBottom="15dp">
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1.5">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="272dp"
|
|
|
+ android:layout_height="61dp"
|
|
|
+ android:layout_gravity="center">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="242dp"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_gravity="center|right"
|
|
|
+ android:background="@drawable/fragment_recommend_userhead_bg"></ImageView>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fragment_recommend_user_head_layout"
|
|
|
+ android:layout_width="54dp"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="54dp"
|
|
|
+ android:background="@drawable/fragment_recommend_userhead"
|
|
|
+ android:padding="4dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fragment_recommend_user_head"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:src="@color/red" />
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:layout_gravity="center|bottom"
|
|
|
+ android:layout_marginBottom="4dp"
|
|
|
+ android:src="@drawable/plus"></ImageView>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/fragment_recommend_video_up"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:src="@drawable/fragment_recommend_up"></ImageView>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fragment_recommend_user_phone"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="1581****1234"
|
|
|
+ android:textColor="@color/fragment_recommend_user_color"
|
|
|
+ android:textSize="28dp"></TextView>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/fragment_recommend_video_next"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:src="@drawable/fragment_recommend_next"></ImageView>
|
|
|
- </LinearLayout>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/fragment_recommend_to_record"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="bottom|right"
|
|
|
- android:layout_marginRight="15dp"
|
|
|
- android:layout_marginBottom="15dp"
|
|
|
- android:src="@drawable/to_record"></ImageView>
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1">
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="90dp"
|
|
|
- android:layout_gravity="top"
|
|
|
- android:layout_marginLeft="40dp"
|
|
|
- android:layout_marginTop="20dp"
|
|
|
- android:layout_marginRight="40dp"
|
|
|
- android:gravity="center|left">
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fragment_recommend_comment_layout"
|
|
|
+ android:layout_width="160dp"
|
|
|
+ android:layout_height="61dp"
|
|
|
+ android:layout_gravity="center">
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="290dp"
|
|
|
- android:layout_height="56dp"
|
|
|
- android:layout_gravity="center">
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="143dp"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_gravity="center|right"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@drawable/fragment_recommend_userhead_bg"></ImageView>
|
|
|
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="52dp"
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:paddingLeft="30dp">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:src="@drawable/fragment_recommend_userhead_bg"></ImageView>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="52dp"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:src="@drawable/fragment_recommend_comment" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:paddingLeft="40dp">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/fragment_recommend_user_name"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_weight="0.8"
|
|
|
- android:gravity="center|left"
|
|
|
- android:maxLength="6"
|
|
|
- android:text="一二三四五六"
|
|
|
- android:textColor="#333333"
|
|
|
- android:textSize="20dp"></TextView>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/fragment_recommend_user_readnum"
|
|
|
+ android:id="@+id/fragment_recommend_comment_num"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:gravity="top|left"
|
|
|
- android:text="朗读号:123123123123123123"></TextView>
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="评论"
|
|
|
+ android:textColor="@color/fragment_recommend_user_color"
|
|
|
+ android:textSize="28dp"></TextView>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
- <androidx.legacy.widget.Space
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_weight="0.01"></androidx.legacy.widget.Space>
|
|
|
- </LinearLayout>
|
|
|
</FrameLayout>
|
|
|
|
|
|
-
|
|
|
<FrameLayout
|
|
|
- android:layout_width="60dp"
|
|
|
- android:layout_height="60dp"
|
|
|
- android:layout_gravity="center|left"
|
|
|
- android:background="@drawable/fragment_recommend_userhead">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/fragment_recommend_user_head"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center|left"></ImageView>
|
|
|
- </FrameLayout>
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1">
|
|
|
|
|
|
- </FrameLayout>
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fragment_recommend_collection_layout"
|
|
|
+ android:layout_width="160dp"
|
|
|
+ android:layout_height="61dp"
|
|
|
+ android:layout_gravity="center">
|
|
|
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="143dp"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_gravity="center|right"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@drawable/fragment_recommend_userhead_bg"></ImageView>
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/fragment_recommend_collection_layout"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="56dp"
|
|
|
- android:layout_marginLeft="50dp">
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="54dp"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fragment_recommend_collection_icon"
|
|
|
+ android:layout_width="52dp"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_gravity="center|left"
|
|
|
+ android:src="@drawable/fragment_recommend_collection_icon" />
|
|
|
+
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fragment_recommend_collection_status"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="已收藏"
|
|
|
+ android:textColor="@color/fragment_recommend_user_color"
|
|
|
+ android:textSize="28dp"></TextView>
|
|
|
+ </FrameLayout>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
<FrameLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center">
|
|
|
+ android:layout_weight="1">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginRight="10dp"
|
|
|
- android:src="@drawable/fragment_recommend_collection"></ImageView>
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fragment_recommend_thumbs_layout"
|
|
|
+ android:layout_width="160dp"
|
|
|
+ android:layout_height="61dp"
|
|
|
+ android:layout_gravity="center">
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginLeft="46dp"
|
|
|
- android:layout_marginRight="40dp"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="10dp"
|
|
|
- android:text="收藏"
|
|
|
- android:textColor="#333333"
|
|
|
- android:textSize="32dp"></TextView>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="143dp"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_gravity="center|right"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@drawable/fragment_recommend_userhead_bg"></ImageView>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="54dp"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fragment_recommend_thumbs_icon"
|
|
|
+ android:layout_width="52dp"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_gravity="center|left"
|
|
|
+ android:src="@drawable/fragment_recommend_thumbs_up" />
|
|
|
+
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/fragment_recommend_thumbs_num"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="1234"
|
|
|
+ android:textColor="@color/fragment_recommend_user_color"
|
|
|
+ android:textSize="28dp"></TextView>
|
|
|
+ </FrameLayout>
|
|
|
</FrameLayout>
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center|right"
|
|
|
- android:src="@drawable/plus"></ImageView>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:layout_marginRight="20dp"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+ android:layout_weight="15">
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/fragment_recommend_recyclerview"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:orientation="vertical"></androidx.recyclerview.widget.RecyclerView>
|
|
|
+
|
|
|
+
|
|
|
</FrameLayout>
|
|
|
|
|
|
+
|
|
|
<FrameLayout
|
|
|
- android:id="@+id/fragment_recommend_comment_layout"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="56dp"
|
|
|
- android:layout_marginLeft="37dp">
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1.6">
|
|
|
|
|
|
- <FrameLayout
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center">
|
|
|
+ android:layout_height="42dp"
|
|
|
+ android:layout_gravity="top"
|
|
|
+ android:gravity="top">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_marginRight="10dp"
|
|
|
- android:background="@drawable/fragment_recommend_comment"></ImageView>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
+ android:layout_weight="1">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fragment_recommend_video_up"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:src="@drawable/fragment_recommend_up"></ImageView>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginLeft="55dp"
|
|
|
- android:layout_marginRight="45dp"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="10dp"
|
|
|
- android:text="1234"
|
|
|
- android:textColor="#333333"
|
|
|
- android:textSize="32dp"></TextView>
|
|
|
- </FrameLayout>
|
|
|
+ android:layout_weight="1">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fragment_recommend_video_next"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:src="@drawable/fragment_recommend_next"></ImageView>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center|right"
|
|
|
- android:src="@drawable/plus"></ImageView>
|
|
|
</FrameLayout>
|
|
|
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/fragment_recommend_to_record_layout"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom|right"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
<FrameLayout
|
|
|
- android:id="@+id/fragment_recommend_thumbs_up_layout"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="56dp"
|
|
|
- android:layout_marginLeft="37dp">
|
|
|
+ android:layout_width="121dp"
|
|
|
+ android:layout_height="121dp">
|
|
|
|
|
|
- <FrameLayout
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/fragment_recommend_to_record_bg"
|
|
|
android:layout_width="match_parent"
|
|
|
+ android:rotation="80"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginRight="10dp"
|
|
|
- android:background="@drawable/fragment_recommend_thumbs_up"></ImageView>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_marginLeft="55dp"
|
|
|
- android:layout_marginRight="45dp"
|
|
|
- android:gravity="center"
|
|
|
- android:paddingBottom="10dp"
|
|
|
- android:text="1234"
|
|
|
- android:textColor="#333333"
|
|
|
- android:textSize="32dp"></TextView>
|
|
|
- </FrameLayout>
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:src="@drawable/to_record_bg"></ImageView>
|
|
|
|
|
|
<ImageView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center|right"
|
|
|
- android:src="@drawable/plus"></ImageView>
|
|
|
+ android:id="@+id/fragment_recommend_to_record_icon"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:src="@drawable/to_record_icon"></ImageView>
|
|
|
</FrameLayout>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="105dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:layout_marginBottom="15dp"
|
|
|
+ android:src="@drawable/to_record"></ImageView>
|
|
|
</LinearLayout>
|
|
|
</FrameLayout>
|
|
|
|