|
@@ -0,0 +1,117 @@
|
|
|
+<?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="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_date"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="日期"/>
|
|
|
+
|
|
|
+ <com.github.vipulasri.timelineview.TimelineView
|
|
|
+ android:id="@+id/time_marker"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ app:markerInCenter = "false"
|
|
|
+ app:markerSize="20dp"
|
|
|
+ app:lineSize="3dp"
|
|
|
+ app:line="@color/colorPrimary"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/company_10dp"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/company_15sp"
|
|
|
+ android:textColor="@color/main_color"
|
|
|
+ android:text="发布了评论"/>
|
|
|
+
|
|
|
+ <me.zhanghai.android.materialratingbar.MaterialRatingBar
|
|
|
+ android:id="@+id/rb_score"
|
|
|
+ android:layout_width="@dimen/company_90dp"
|
|
|
+ android:layout_height="@dimen/company_20dp"
|
|
|
+ android:layout_marginTop="@dimen/company_5dp"
|
|
|
+ android:isIndicator="true"
|
|
|
+ app:mrb_progressTint="@color/rb_color"
|
|
|
+ app:mrb_secondaryProgressTint="@color/color_999"
|
|
|
+ android:stepSize="0.5"
|
|
|
+ style="@style/Widget.MaterialRatingBar.RatingBar" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_content"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/company_16sp"
|
|
|
+ android:textColor="@color/color_666"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/company_60dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="@dimen/company_5dp"
|
|
|
+ android:background="#F0F0F0">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_org_icon"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:src="@mipmap/ic_launcher"
|
|
|
+ android:scaleType="centerCrop"/>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_marginLeft="@dimen/company_10dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_org_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/company_15sp"
|
|
|
+ android:textColor="@color/color_999"
|
|
|
+ android:text="新东方英语学校"/>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentBottom="true">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/company_14sp"
|
|
|
+ android:textColor="@color/color_999"
|
|
|
+ android:text="初中英语"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_address"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:textColor="@color/color_999"
|
|
|
+ android:textSize="11sp"
|
|
|
+ android:text="未名湖"/>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="@dimen/company_40dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|