2024-03-08 14:34:05 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2024-03-12 18:30:02 +08:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@mipmap/main_bg"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="15dp">
|
2024-03-08 14:34:05 +08:00
|
|
|
|
|
|
|
<include layout="@layout/view_title_new" />
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_height="wrap_content"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/avatar"
|
|
|
|
android:layout_width="68dp"
|
|
|
|
android:layout_height="68dp"
|
|
|
|
android:src="@mipmap/icon_data_empty"
|
|
|
|
app:riv_corner_radius="20dp" />
|
2024-03-08 14:34:05 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/name"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="栗子栗子🌰zzz"
|
|
|
|
android:textColor="#333333"
|
|
|
|
android:textSize="20dp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/time"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:text="02 - 11发布"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:textColor="#AAAAAA"
|
|
|
|
android:textSize="12dp" />
|
2024-03-08 14:34:05 +08:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/followLayout"
|
|
|
|
android:layout_width="78dp"
|
|
|
|
android:layout_height="36dp"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:background="@drawable/bg_main_com_type"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/followIcon"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:src="@mipmap/icon_like_follow" />
|
|
|
|
|
|
|
|
<TextView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/followName"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:text="关注"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="14dp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/content"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_marginTop="15dp"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:text="哇这里我也太想去了!真是太漂亮了 请问一下路边结冰了吗?会不会封路?"
|
|
|
|
android:textColor="#333333" />
|
|
|
|
|
2024-03-12 18:30:02 +08:00
|
|
|
<com.yunbao.common.views.NineGridLayout
|
|
|
|
android:id="@+id/nine_grid_layout"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
app:ngl_corner_radius="5dp"
|
|
|
|
app:ngl_divider_width="6dp"
|
|
|
|
app:ngl_space="30dp" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/videoLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="400dp"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/videoImage"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="400dp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:src="@mipmap/icon_play" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2024-03-08 14:34:05 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="15dp">
|
|
|
|
|
|
|
|
<ImageView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/like"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:src="@mipmap/icon_like" />
|
|
|
|
|
|
|
|
<TextView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/likeCount"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:text="105人觉得很赞"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:textColor="#333333"
|
|
|
|
android:textSize="12dp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:src="@mipmap/icon_share_new" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:background="#FFE9F6" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<TextView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/replyCount"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="评论123"
|
|
|
|
android:textColor="#333333"
|
|
|
|
android:textSize="16dp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:src="@mipmap/icon_comment" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2024-03-12 18:30:02 +08:00
|
|
|
android:id="@+id/commentListView"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_height="55dp"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingLeft="20dp"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:paddingRight="20dp">
|
2024-03-08 14:34:05 +08:00
|
|
|
|
2024-03-12 18:30:02 +08:00
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
|
|
android:id="@+id/userAvatar"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_width="35dp"
|
|
|
|
android:layout_height="35dp"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:src="@mipmap/icon_data_empty"
|
|
|
|
app:riv_corner_radius="20dp" />
|
2024-03-08 14:34:05 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginStart="15dp"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_marginBottom="10dp"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="@drawable/bg_community_comment"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="15dp"
|
|
|
|
android:layout_height="15dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:src="@mipmap/icon_edit_new" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/comment"
|
|
|
|
android:layout_width="0dp"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_height="40dp"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="@color/transparent"
|
|
|
|
android:hint="说点什么..."
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:textSize="14dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/send"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
2024-03-12 18:30:02 +08:00
|
|
|
android:layout_marginBottom="10dp"
|
2024-03-08 14:34:05 +08:00
|
|
|
android:src="@mipmap/icon_send" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|