充电桩app代码

view_show_bottom.xml 6.9KB

    <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:id="@+id/sv_show_bottom" android:layout_width="match_parent" android:layout_height="50dp" android:layout_alignParentBottom="true"> <LinearLayout android:id="@+id/sv_show_forward" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginEnd="15dp" android:gravity="center_vertical"> <ImageView android:layout_width="19dp" android:layout_height="19dp" android:background="@drawable/icon_forward" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="4dp" android:text="转发" android:textColor="#888888" android:textSize="12sp" /> </LinearLayout> <LinearLayout android:id="@+id/sv_show_comment_count_ll" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_centerVertical="true" android:layout_marginEnd="15dp" android:layout_toStartOf="@+id/sv_show_forward" android:gravity="center_vertical"> <ImageView android:layout_width="19dp" android:layout_height="19dp" android:background="@drawable/icon_comment" /> <TextView android:id="@+id/sv_show_comment_count_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="4dp" android:textColor="#888888" android:textSize="12sp" /> </LinearLayout> <LinearLayout android:id="@+id/sv_show_like_ll" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_centerVertical="true" android:layout_marginRight="15dp" android:layout_toStartOf="@+id/sv_show_comment_count_ll" android:gravity="center_vertical"> <ImageView android:id="@+id/sv_show_like_img" android:layout_width="19dp" android:layout_height="19dp" android:background="@drawable/icon_likeed" /> <TextView android:id="@+id/sv_show_like_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="4dp" android:textColor="#888888" android:textSize="12sp" /> </LinearLayout> <LinearLayout android:id="@+id/sv_show_comment_ll" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerVertical="true" android:layout_marginEnd="15dp" android:layout_toStartOf="@+id/sv_show_like_ll" android:gravity="center_vertical"> <ImageView android:layout_width="19dp" android:layout_height="19dp" android:layout_marginStart="15dp" android:background="@drawable/icon_write_comment" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="4dp" android:text="写评论" android:textColor="#c2c2c2" android:textSize="12sp" /> </LinearLayout> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="1dp" android:layout_above="@+id/sv_show_bottom" android:background="#505050" /> <TextView android:id="@+id/sv_show_tvcon" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/sv_show_bottom" android:layout_marginLeft="39dp" android:layout_marginRight="39dp" android:layout_marginBottom="23dp" android:textColor="#E2E2E2" android:textSize="14sp" /> <ImageView android:id="@+id/sv_show_tvcon_more" android:layout_width="30dp" android:layout_height="30dp" android:layout_above="@+id/sv_show_bottom" android:layout_alignParentEnd="true" android:layout_marginBottom="28dp" android:padding="8dp" android:src="@drawable/icon_expend" /> <RelativeLayout android:id="@+id/sv_show_user_info" android:layout_width="wrap_content" android:layout_height="34dp" android:layout_above="@+id/sv_show_tvcon" android:layout_marginStart="15dp" android:layout_marginBottom="5dp"> <ImageView android:id="@+id/sv_show_user_avatar" android:layout_width="20dp" android:layout_height="20dp" android:layout_centerVertical="true" /> <TextView android:id="@+id/sv_show_user_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="5dp" android:layout_toEndOf="@+id/sv_show_user_avatar" android:textColor="#fff" android:textSize="12sp" /> <TextView android:id="@+id/sv_show_user_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/sv_show_user_name" android:layout_alignStart="@+id/sv_show_user_name" android:textColor="#888888" android:textSize="12sp" /> </RelativeLayout> <LinearLayout android:id="@+id/sv_show_topic" android:layout_width="wrap_content" android:layout_height="30dp" android:layout_above="@+id/sv_show_user_info" android:layout_marginStart="15dp" android:layout_marginEnd="15dp" android:layout_marginBottom="10dp" android:background="#b3303030" android:gravity="center_vertical"> <ImageView android:layout_width="12dp" android:layout_height="12dp" android:layout_marginStart="12dp" android:layout_marginEnd="4dp" android:src="@drawable/icon_at" /> <TextView android:id="@+id/sv_show_topic_con" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="12dp" android:ellipsize="end" android:maxLines="1" android:textColor="#fff" android:textSize="11sp" /> </LinearLayout> </merge>