|
@@ -1,252 +1,274 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
android:background="@color/translucent_background"
|
|
|
android:clickable="true"
|
|
|
android:focusableInTouchMode="true"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
- <Space
|
|
|
- android:id="@+id/comment_touch_back"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="2"></Space>
|
|
|
-
|
|
|
<FrameLayout
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
+ android:id="@+id/frameLayout"
|
|
|
+ android:layout_width="720dp"
|
|
|
+ android:layout_height="560dp"
|
|
|
android:layout_gravity="center"
|
|
|
- android:layout_weight="6"
|
|
|
- android:background="@color/white">
|
|
|
-
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:background="@color/translucent_background"
|
|
|
android:clickable="true"
|
|
|
android:focusableInTouchMode="true"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
+ <Space
|
|
|
+ android:id="@+id/comment_touch_back"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="2"></Space>
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_gravity="center|top"
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
android:layout_weight="6"
|
|
|
- android:gravity="center|top"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/comment_count"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="42dp"
|
|
|
- android:layout_marginTop="38dp"
|
|
|
- android:alpha="0.8"
|
|
|
- android:text="评论:0"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="30dp"></TextView>
|
|
|
-
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
-
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
- android:id="@+id/comment_item_layout"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"></androidx.recyclerview.widget.RecyclerView>
|
|
|
-
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/comment_no_comment"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:visibility="gone">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:src="@drawable/fragment_user_no_record"></ImageView>
|
|
|
- </FrameLayout>
|
|
|
+ android:background="@color/white">
|
|
|
|
|
|
- </FrameLayout>
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/comment_quick_layout"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_weight="1.5"
|
|
|
- android:background="@color/aliceblue">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:clickable="true"
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
- <FrameLayout
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
- android:layout_weight="1">
|
|
|
+ android:layout_gravity="center|top"
|
|
|
+ android:layout_weight="6"
|
|
|
+ android:gravity="center|top"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
<TextView
|
|
|
+ android:id="@+id/comment_count"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:gravity="center|left"
|
|
|
- android:paddingLeft="20dp"
|
|
|
- android:text="留下你的赞美,鼓励一下。"
|
|
|
+ android:layout_height="42dp"
|
|
|
+ android:layout_marginTop="38dp"
|
|
|
+ android:alpha="0.8"
|
|
|
+ android:text="评论:0"
|
|
|
android:textColor="@color/black"
|
|
|
- android:textSize="28dp"></TextView>
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/comment_close_quick"
|
|
|
- android:layout_width="32dp"
|
|
|
- android:layout_height="32dp"
|
|
|
- android:layout_gravity="right|top"
|
|
|
- android:layout_marginTop="20dp"
|
|
|
- android:layout_marginRight="32dp"
|
|
|
- android:src="@color/red"></ImageView>
|
|
|
- </FrameLayout>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:divider="@drawable/main_left_tab_divider"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingLeft="20dp"
|
|
|
- android:paddingRight="20dp"
|
|
|
- android:paddingBottom="20dp"
|
|
|
- android:showDividers="middle">
|
|
|
+ android:textSize="30dp"></TextView>
|
|
|
|
|
|
<FrameLayout
|
|
|
- android:id="@+id/comment_quick_layout_item1"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@drawable/activity_comment_quick_item_one_bg">
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
- <TextView
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/comment_item_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:gravity="center"
|
|
|
- android:text="很优秀,向你学习"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="24dp"></TextView>
|
|
|
- </FrameLayout>
|
|
|
-
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/comment_quick_layout_item2"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@drawable/activity_comment_quick_item_two_bg">
|
|
|
+ android:orientation="vertical"></androidx.recyclerview.widget.RecyclerView>
|
|
|
|
|
|
- <TextView
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/comment_no_comment"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:gravity="center"
|
|
|
- android:text="挺好的,期待更好"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="24dp"></TextView>
|
|
|
- </FrameLayout>
|
|
|
-
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/comment_quick_layout_item3"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@drawable/activity_comment_quick_item_three_bg">
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:gravity="center"
|
|
|
- android:text="还可以,继续努力"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="24dp"></TextView>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:src="@drawable/fragment_user_no_record"></ImageView>
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
</FrameLayout>
|
|
|
</LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
|
|
|
- </FrameLayout>
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/comment_quick_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1.5"
|
|
|
+ android:background="@color/aliceblue">
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="120dp"
|
|
|
- android:background="@color/aliceblue"
|
|
|
- android:padding="20dp">
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center|left"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:text="留下你的赞美,鼓励一下。"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="28dp"></TextView>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/comment_close_quick"
|
|
|
+ android:layout_width="32dp"
|
|
|
+ android:layout_height="32dp"
|
|
|
+ android:layout_gravity="right|top"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginRight="32dp"
|
|
|
+ android:src="@color/red"></ImageView>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:divider="@drawable/main_left_tab_divider"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:paddingRight="20dp"
|
|
|
+ android:paddingBottom="20dp"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/comment_quick_layout_item1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/activity_comment_quick_item_one_bg">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="很优秀,向你学习"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="24dp"></TextView>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/comment_quick_layout_item2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/activity_comment_quick_item_two_bg">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="挺好的,期待更好"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="24dp"></TextView>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/comment_quick_layout_item3"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/activity_comment_quick_item_three_bg">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="还可以,继续努力"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="24dp"></TextView>
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
- <com.edufound.reader.cusview.RoundFrameLayout
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="3"
|
|
|
- android:background="@color/white">
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="120dp"
|
|
|
+ android:background="@color/aliceblue"
|
|
|
+ android:padding="20dp">
|
|
|
|
|
|
- <EditText
|
|
|
- android:id="@+id/comment_edit_text"
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:background="@null"
|
|
|
- android:gravity="center|left"
|
|
|
- android:hint="我有话说..."
|
|
|
- android:paddingLeft="20dp"
|
|
|
- android:textSize="25dp"></EditText>
|
|
|
- </com.edufound.reader.cusview.RoundFrameLayout>
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1">
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- <com.edufound.reader.cusview.RoundFrameLayout
|
|
|
- android:id="@+id/comment_sendcomment"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginLeft="20dp"
|
|
|
- android:background="@color/white">
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <com.edufound.reader.cusview.RoundFrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="3"
|
|
|
+ android:background="@color/white">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/comment_edit_text"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@null"
|
|
|
+ android:gravity="center|left"
|
|
|
+ android:hint="我有话说..."
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:textSize="25dp"></EditText>
|
|
|
+ </com.edufound.reader.cusview.RoundFrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:gravity="center"
|
|
|
- android:text="发送"
|
|
|
- android:textColor="@color/dodgerblue"
|
|
|
- android:textSize="30dp"></TextView>
|
|
|
- </com.edufound.reader.cusview.RoundFrameLayout>
|
|
|
+ android:layout_weight="1">
|
|
|
+
|
|
|
+ <com.edufound.reader.cusview.RoundFrameLayout
|
|
|
+ android:id="@+id/comment_sendcomment"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:background="@color/white">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="发送"
|
|
|
+ android:textColor="@color/dodgerblue"
|
|
|
+ android:textSize="30dp"></TextView>
|
|
|
+ </com.edufound.reader.cusview.RoundFrameLayout>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
</FrameLayout>
|
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
- </FrameLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/comment_back"
|
|
|
+ android:layout_width="34dp"
|
|
|
+ android:layout_height="34dp"
|
|
|
+ android:layout_gravity="right|top"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginRight="32dp"
|
|
|
+ android:src="@color/green"></ImageView>
|
|
|
+ </FrameLayout>
|
|
|
</LinearLayout>
|
|
|
-
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/comment_back"
|
|
|
- android:layout_width="34dp"
|
|
|
- android:layout_height="34dp"
|
|
|
- android:layout_gravity="right|top"
|
|
|
- android:layout_marginTop="20dp"
|
|
|
- android:layout_marginRight="32dp"
|
|
|
- android:src="@color/green"></ImageView>
|
|
|
</FrameLayout>
|
|
|
-</LinearLayout>
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|