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

50 lines
1.8 KiB
XML
Raw Normal View History

2016-02-20 16:30:28 +01:00
<?xml version="1.0" encoding="utf-8"?>
2016-03-22 19:16:02 +01:00
<RelativeLayout
2016-02-20 16:30:28 +01:00
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dir_holder"
2016-02-20 16:30:28 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="1px">
2016-02-20 16:30:28 +01:00
<include layout="@layout/directory_tmb"/>
2016-02-20 16:30:28 +01:00
2016-12-05 20:20:38 +01:00
<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"/>
2016-02-20 16:30:28 +01:00
<RelativeLayout
android:id="@+id/dir_shadow_holder"
2016-02-20 16:30:28 +01:00
android:layout_width="match_parent"
android:layout_height="@dimen/tmb_shadow_height"
2016-02-20 16:30:28 +01:00
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">
2016-02-20 16:30:28 +01:00
<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"
2016-02-20 16:30:28 +01:00
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"
2016-02-20 16:30:28 +01:00
android:textColor="@android:color/white"/>
2016-02-20 16:30:28 +01:00
</RelativeLayout>
2016-03-22 19:16:02 +01:00
</RelativeLayout>