123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?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="wrap_content"
- android:background="@android:color/white"
- android:orientation="vertical"
- android:paddingLeft="10dp"
- android:paddingRight="10dp"
- android:paddingTop="5dp"
- android:paddingBottom="5dp">
- <android.support.v7.widget.CardView
- android:id="@+id/circle_item_cardview"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardBackgroundColor="@android:color/white">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="8dp">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <ImageView
- android:id="@+id/avatar_img"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:src="@drawable/nim_avatar_default" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_marginLeft="16dp"
- android:layout_marginStart="16dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:id="@+id/username_tv"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@android:color/holo_blue_dark" />
- <TextView
- android:id="@+id/user_content_tv"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@android:color/darker_gray"
- android:minHeight="50dp"
- android:gravity="center_vertical"/>
- </LinearLayout>
- <com.sheishuo.app.common.views.ImgGridView
- android:id="@+id/gridview_imgs"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:scrollbars="none"
- android:numColumns="2"
- android:horizontalSpacing="5dp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:id="@+id/location_tv"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="地点"
- android:textColor="@android:color/darker_gray"
- android:textSize="10sp"/>
- <TextView
- android:id="@+id/date_tv"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="发布日期"
- android:textColor="@android:color/darker_gray"
- android:textSize="10sp"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="end">
- <ImageView
- android:layout_width="30dp"
- android:layout_height="match_parent"
- android:src="@drawable/circle_eye" />
- <TextView
- android:id="@+id/visit_num_tv"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center"
- android:text="浏览数"
- android:textColor="@android:color/darker_gray"/>
- <ImageView
- android:id="@+id/liked_img"
- android:layout_width="30dp"
- android:layout_height="match_parent"
- android:src="@drawable/circle_likes" />
- <TextView
- android:id="@+id/likes_num_tv"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center"
- android:text="喜欢数"
- android:textColor="@android:color/darker_gray"/>
- <ImageView
- android:layout_width="30dp"
- android:layout_height="match_parent"
- android:src="@drawable/circle_comments" />
- <TextView
- android:id="@+id/comment_num_tv"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center"
- android:text="评论"
- android:textColor="@android:color/darker_gray"/>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/circle_liked_user_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/grey_light_light"
- android:gravity="start|center_vertical"
- android:padding="3dp"
- android:layout_marginTop="16dp"
- android:orientation="horizontal"
- android:visibility="gone">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/circe_likes_user" />
- <TextView
- android:id="@+id/circle_liked_user_tv"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#337a9b"
- android:maxLines="1"
- android:maxEms="50"/>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </android.support.v7.widget.CardView>
- <View style="@style/horizontal_light_thin_divider" />
- </LinearLayout>
|