use resources instead of some hardcoded values

This commit is contained in:
tibbi 2016-07-20 21:03:48 +02:00
parent b0d9c7e8ee
commit cda29dd904
3 changed files with 10 additions and 8 deletions

View File

@ -12,24 +12,24 @@
android:layout_width="match_parent"
android:layout_height="@dimen/tmb_shadow_height"
android:layout_alignParentBottom="true"
android:background="#55000000"
android:paddingBottom="4dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="4dp">
android:background="@color/actionbar_grey"
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:paddingBottom="4dp"
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_below="@id/dir_name"
android:layout_below="@+id/dir_name"
android:textColor="@android:color/white"/>
</RelativeLayout>

View File

@ -6,5 +6,5 @@
<color name="pressed_item_foreground">#33ff6f00</color>
<color name="activated_item_foreground">#99ff6f00</color>
<color name="tmb_background">#ff222222</color>
<color name="actionbar_grey">#66000000</color>
<color name="actionbar_grey">#55000000</color>
</resources>

View File

@ -1,5 +1,7 @@
<resources>
<dimen name="activity_margin">16dp</dimen>
<dimen name="small_padding">4dp</dimen>
<dimen name="medium_padding">8dp</dimen>
<dimen name="dir_tmb_size">150dp</dimen>
<dimen name="medium_tmb_size">100dp</dimen>
<dimen name="play_outline_size">40dp</dimen>