mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 12:38:00 +01:00
use resources instead of some hardcoded values
This commit is contained in:
parent
b0d9c7e8ee
commit
cda29dd904
3 changed files with 10 additions and 8 deletions
|
@ -12,24 +12,24 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/tmb_shadow_height"
|
android:layout_height="@dimen/tmb_shadow_height"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:background="#55000000"
|
android:background="@color/actionbar_grey"
|
||||||
android:paddingBottom="4dp"
|
android:paddingBottom="@dimen/small_padding"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="@dimen/medium_padding"
|
||||||
android:paddingRight="8dp"
|
android:paddingRight="@dimen/medium_padding"
|
||||||
android:paddingTop="4dp">
|
android:paddingTop="@dimen/small_padding">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/dir_name"
|
android:id="@+id/dir_name"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingBottom="4dp"
|
android:paddingBottom="@dimen/small_padding"
|
||||||
android:textColor="@android:color/white"/>
|
android:textColor="@android:color/white"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/photo_cnt"
|
android:id="@+id/photo_cnt"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/dir_name"
|
android:layout_below="@+id/dir_name"
|
||||||
android:textColor="@android:color/white"/>
|
android:textColor="@android:color/white"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -6,5 +6,5 @@
|
||||||
<color name="pressed_item_foreground">#33ff6f00</color>
|
<color name="pressed_item_foreground">#33ff6f00</color>
|
||||||
<color name="activated_item_foreground">#99ff6f00</color>
|
<color name="activated_item_foreground">#99ff6f00</color>
|
||||||
<color name="tmb_background">#ff222222</color>
|
<color name="tmb_background">#ff222222</color>
|
||||||
<color name="actionbar_grey">#66000000</color>
|
<color name="actionbar_grey">#55000000</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
<dimen name="activity_margin">16dp</dimen>
|
<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="dir_tmb_size">150dp</dimen>
|
||||||
<dimen name="medium_tmb_size">100dp</dimen>
|
<dimen name="medium_tmb_size">100dp</dimen>
|
||||||
<dimen name="play_outline_size">40dp</dimen>
|
<dimen name="play_outline_size">40dp</dimen>
|
||||||
|
|
Loading…
Reference in a new issue