123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout 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:orientation="vertical">
- <android.support.design.widget.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <com.shuishuo.app.common.views.BaseToolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="@dimen/action_bar_height"
- style="@style/fullToolbarStyle"/>
- </android.support.design.widget.AppBarLayout>
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <android.support.constraint.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="16dp">
- <com.netease.nim.uikit.common.ui.imageview.HeadImageView
- android:id="@+id/circle_details_avatar"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_marginLeft="8dp"
- android:layout_marginStart="8dp"
- android:layout_marginTop="8dp"
- android:src="@drawable/nim_avatar_default"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/circle_details_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="15dp"
- android:layout_marginStart="15dp"
- android:text="用户名"
- app:layout_constraintLeft_toRightOf="@+id/circle_details_avatar"
- app:layout_constraintTop_toTopOf="@+id/circle_details_avatar" />
- <TextView
- android:id="@+id/circle_details_date"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="发布时间"
- app:layout_constraintBottom_toBottomOf="@+id/circle_details_avatar"
- app:layout_constraintLeft_toLeftOf="@+id/circle_details_name" />
- </android.support.constraint.ConstraintLayout>
- <com.shuishuo.app.common.views.PartlyHighLightTextView
- android:id="@+id/circle_details_content"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:layout_marginStart="8dp"
- android:layout_marginTop="7dp"
- android:text="朋友圈内容朋友圈内容"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/circle_details_date" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center">
- <GridLayout
- android:id="@+id/circle_details_imgs_grid"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:numColumns="2"
- android:layout_margin="16dp" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/circle_details_info_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/color_background"
- android:orientation="vertical">
- <!--浏览量,喜欢,评论计数-->
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/white"
- android:gravity="end"
- android:orientation="horizontal"
- android:padding="8dp">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/circle_eye"
- android:visibility="gone" />
- <TextView
- android:id="@+id/circle_details_read_num"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="123"
- android:textColor="@color/grey_light"
- android:visibility="gone" />
- <TextView
- android:id="@+id/circle_details_delete"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginRight="10dp"
- android:text="删除"
- android:textColor="@color/grey_light" />
- <ImageView
- android:id="@+id/circle_details_like_icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/circle_likes" />
- <TextView
- android:id="@+id/circle_details_like_num"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginRight="10dp"
- android:text="123"
- android:textColor="@color/grey_light" />
- <ImageView
- android:id="@+id/circle_details_comment_icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/circle_comments" />
- <TextView
- android:id="@+id/circle_details_comment_num"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="评论"
- android:textColor="@color/grey_light" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal"
- android:paddingBottom="8dp"
- android:paddingLeft="8dp"
- android:paddingTop="8dp">
- <LinearLayout
- android:id="@+id/circle_details_local_layout"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/location_btn_bg"
- android:gravity="center"
- android:orientation="horizontal"
- android:paddingBottom="2dp"
- android:paddingLeft="5dp"
- android:paddingRight="5dp"
- android:paddingTop="2dp">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginRight="2dp"
- app:srcCompat="@drawable/location" />
- <TextView
- android:id="@+id/circle_details_local"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="重庆北碚区"
- android:textColor="@color/grey_light" />
- </LinearLayout>
- </LinearLayout>
- </RelativeLayout>
- <!--点赞用户头像-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:background="@color/white"
- android:orientation="horizontal"
- android:padding="8dp">
- <LinearLayout
- android:id="@+id/circle_details_avatar_layout"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="9"
- android:orientation="horizontal" />
- <TextView
- android:id="@+id/circle_details_like_num2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="end"
- android:text="3人已赞" />
- </LinearLayout>
- <!--间隔-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="8dp">
- <View
- android:layout_width="4dp"
- android:layout_height="16dp"
- android:background="@color/colorPrimary" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="4dp"
- android:layout_marginStart="4dp"
- android:text="全部评论"
- android:textColor="@color/grey_light" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/circle_details_comments_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- android:orientation="vertical" >
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- android:gravity="center"
- android:padding="64dp"
- android:text="暂无评论"
- android:visibility="gone" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </ScrollView>
- </LinearLayout>
|