Skip to content
Snippets Groups Projects
Commit 36833e0a authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Center thumbnail in video grid element

parent cc9151a2
No related branches found
No related tags found
No related merge requests found
......@@ -70,15 +70,16 @@
android:layout_height="@dimen/grid_card_thumb_height"
android:background="?attr/background_default_darker"
android:scaleType="@{scaleType}"
android:layout_gravity="center_horizontal"
vlc:media="@{media}"
vlc:binding="@{holder.binding}"
android:src="@{cover}"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_width="@dimen/grid_card_thumb_width"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/half_default_margin"
android:layout_marginTop="4dp"
android:layout_gravity="center_horizontal"
android:gravity="center_vertical"
android:orientation="horizontal">
......@@ -108,10 +109,9 @@
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_width="@dimen/grid_card_thumb_width"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/half_default_margin"
android:layout_marginRight="@dimen/half_default_margin"
android:layout_gravity="center_horizontal"
android:layout_marginTop="4dp"
android:orientation="horizontal">
......
<resources>
<dimen name="grid_card_width">200dp</dimen>
<dimen name="grid_card_width">210dp</dimen>
<dimen name="grid_card_height">200dp</dimen>
<dimen name="grid_card_thumb_width">200dp</dimen>
<dimen name="grid_card_thumb_height">125dp</dimen>
......
......@@ -5,7 +5,7 @@
<dimen name="directory_browser_item_size">40dp</dimen>
<dimen name="listview_bottom_padding">10dp</dimen>
<dimen name="listview_side_padding">5dp</dimen>
<dimen name="grid_card_width">160dp</dimen>
<dimen name="grid_card_width">170dp</dimen>
<dimen name="grid_card_height">160dp</dimen>
<dimen name="grid_card_thumb_width">160dp</dimen>
<dimen name="grid_card_thumb_height">100dp</dimen>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment