实现效果:
微信参照界面:
一个关键点: "早晚报"与"下午19:05"之间要用空白TextView隔开,来造成一个靠左,一个靠右的效果
LinearLayout Item 结构如下
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/green"/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:id="@+id/nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="早晚报"/>
android:id="@+id/nickname22"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
android:id="@+id/rightnickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="下午19:05"/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:id="@+id/rightnickname2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="晚报:北京10日出租车涨价"/>