improve card margin & edit its dimensions for landscape
This commit is contained in:
parent
7c7c61fc35
commit
7b6d6da9a6
3 changed files with 19 additions and 13 deletions
|
@ -4,7 +4,11 @@
|
|||
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/video_item_search_card_margin">
|
||||
android:paddingTop="@dimen/video_item_search_card_vertical_margin"
|
||||
android:paddingBottom="@dimen/video_item_search_card_vertical_margin"
|
||||
android:paddingLeft="@dimen/video_item_search_card_horizontal_margin"
|
||||
android:paddingRight="@dimen/video_item_search_card_horizontal_margin"
|
||||
>
|
||||
|
||||
<android.support.v7.widget.CardView
|
||||
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||||
|
|
|
@ -4,20 +4,21 @@
|
|||
<!-- Video Item Search View Dimensions-->
|
||||
<!---->
|
||||
<!-- Text Size -->
|
||||
<dimen name="video_item_search_title_text_size">14sp</dimen>
|
||||
<dimen name="video_item_search_duration_text_size">11sp</dimen>
|
||||
<dimen name="video_item_search_uploader_text_size">12sp</dimen>
|
||||
<dimen name="video_item_search_upload_date_text_size">12sp</dimen>
|
||||
<dimen name="video_item_search_title_text_size">22sp</dimen>
|
||||
<dimen name="video_item_search_duration_text_size">16sp</dimen>
|
||||
<dimen name="video_item_search_uploader_text_size">18sp</dimen>
|
||||
<dimen name="video_item_search_upload_date_text_size">18sp</dimen>
|
||||
<!-- Elements Size -->
|
||||
<dimen name="video_item_search_image_width">140dp</dimen>
|
||||
<dimen name="video_item_search_image_height">80dp</dimen>
|
||||
<dimen name="video_item_search_image_width">210dp</dimen>
|
||||
<dimen name="video_item_search_image_height">130dp</dimen>
|
||||
<!-- Paddings & Margins -->
|
||||
<dimen name="video_item_search_card_margin">6dp</dimen>
|
||||
<dimen name="video_item_search_card_vertical_margin">3dp</dimen>
|
||||
<dimen name="video_item_search_card_horizontal_margin">6dp</dimen>
|
||||
<dimen name="video_item_search_card_padding">6dp</dimen>
|
||||
<dimen name="video_item_search_image_right_margin">6dp</dimen>
|
||||
<dimen name="video_item_search_duration_vertical_padding">1sp</dimen>
|
||||
<dimen name="video_item_search_duration_horizontal_padding">5sp</dimen>
|
||||
<dimen name="video_item_search_duration_margin">2sp</dimen>
|
||||
<dimen name="video_item_search_image_right_margin">10dp</dimen>
|
||||
<dimen name="video_item_search_duration_vertical_padding">2sp</dimen>
|
||||
<dimen name="video_item_search_duration_horizontal_padding">7sp</dimen>
|
||||
<dimen name="video_item_search_duration_margin">5sp</dimen>
|
||||
<!-- Miscellaneous -->
|
||||
<dimen name="video_item_search_card_radius">4dp</dimen>
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
<dimen name="video_item_search_image_width">140dp</dimen>
|
||||
<dimen name="video_item_search_image_height">80dp</dimen>
|
||||
<!-- Paddings & Margins -->
|
||||
<dimen name="video_item_search_card_margin">3dp</dimen>
|
||||
<dimen name="video_item_search_card_vertical_margin">3dp</dimen>
|
||||
<dimen name="video_item_search_card_horizontal_margin">6dp</dimen>
|
||||
<dimen name="video_item_search_card_padding">6dp</dimen>
|
||||
<dimen name="video_item_search_image_right_margin">6dp</dimen>
|
||||
<dimen name="video_item_search_duration_vertical_padding">1sp</dimen>
|
||||
|
|
Loading…
Reference in a new issue