Simple-Gallery/app/src/main/res/layout/directory_item.xml

50 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dir_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="1px">
<include layout="@layout/directory_tmb"/>
<ImageView
android:id="@+id/dir_pin"
android:layout_width="@dimen/pin_size"
android:layout_height="@dimen/pin_size"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_margin="@dimen/small_padding"
android:src="@mipmap/pin"/>
<RelativeLayout
android:id="@+id/dir_shadow_holder"
android:layout_width="match_parent"
android:layout_height="@dimen/tmb_shadow_height"
android:layout_alignParentBottom="true"
android:background="@drawable/gradient_background"
android:gravity="bottom"
android:paddingBottom="@dimen/small_padding"
android:paddingLeft="@dimen/medium_padding"
android:paddingRight="@dimen/medium_padding"
android:paddingTop="@dimen/small_padding">
<TextView
android:id="@+id/dir_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/photo_cnt"
android:paddingBottom="@dimen/small_padding"
android:textColor="@android:color/white"/>
<TextView
android:id="@+id/photo_cnt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:textColor="@android:color/white"/>
</RelativeLayout>
</RelativeLayout>