Files
HouseProperty/app/src/main/res/layout/activity_image_select.xml
2020-08-03 09:11:54 +08:00

195 lines
7.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/rl_top_bar"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="#373c3d"
android:orientation="vertical">
<FrameLayout
android:id="@+id/btn_back"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:foreground="@drawable/btn_back_selector">
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:scaleType="centerInside"
android:src="@drawable/icon_back" />
</FrameLayout>
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="12dp"
android:layout_marginTop="12dp"
android:layout_toRightOf="@+id/btn_back"
android:background="@android:color/black" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/btn_back"
android:text="@string/image"
android:textColor="@android:color/white"
android:textSize="18sp" />
<FrameLayout
android:id="@+id/btn_confirm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="16dp"
android:foreground="@drawable/btn_foreground_selector">
<TextView
android:id="@+id/tv_confirm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/btn_green_shape"
android:gravity="center"
android:minWidth="50dp"
android:paddingBottom="5dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingTop="5dp"
android:text="@string/confirm"
android:textColor="@android:color/white"
android:textSize="14sp" />
</FrameLayout>
</RelativeLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/rl_bottom_bar"
android:layout_below="@+id/rl_top_bar"
android:background="#272828"
android:fadingEdge="none"
android:fadingEdgeLength="0dp"
android:overScrollMode="never"
android:scrollbars="vertical" />
<TextView
android:id="@+id/tv_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/rv_image"
android:background="#9e111212"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="5dp"
android:textColor="@android:color/white"
android:textSize="12sp" />
<View
android:id="@+id/masking"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/rv_image"
android:layout_alignTop="@+id/rv_image"
android:background="#c4111212"
android:visibility="gone" />
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_folder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/rv_image"
android:layout_alignTop="@+id/rv_image"
android:layout_marginTop="80dp"
android:background="@android:color/white"
android:fadingEdge="none"
android:fadingEdgeLength="0dp"
android:overScrollMode="never"
android:paddingTop="3dp"
android:paddingBottom="3dp"
android:scrollbars="vertical" />
<RelativeLayout
android:id="@+id/rl_bottom_bar"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_alignParentBottom="true"
android:background="#373c3d">
<FrameLayout
android:id="@+id/btn_folder"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:foreground="@drawable/btn_foreground_selector">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp">
<TextView
android:id="@+id/tv_folder_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:textSize="18sp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/tv_folder_name"
android:layout_marginLeft="2dp"
android:layout_toRightOf="@+id/tv_folder_name"
android:src="@drawable/text_indicator" />
</RelativeLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/btn_preview"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:foreground="@drawable/btn_foreground_selector">
<TextView
android:id="@+id/tv_preview"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:minWidth="70dp"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:text="@string/preview"
android:textColor="@android:color/white"
android:textSize="18sp" />
</FrameLayout>
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="15dp"
android:layout_marginTop="15dp"
android:layout_toLeftOf="@+id/btn_preview"
android:background="@android:color/black" />
</RelativeLayout>
</RelativeLayout>