finally make card layout look good

This commit is contained in:
chschtsch 2015-12-02 17:13:01 +03:00
parent 1c49102f67
commit c5408fb6b8
2 changed files with 9 additions and 11 deletions

View File

@ -57,13 +57,15 @@
</RelativeLayout>
<RelativeLayout
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="@dimen/video_item_search_image_height"
android:layout_toRightOf="@id/itemThumbnailViewContainer">
<TextView android:id="@+id/itemVideoTitleView"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="@dimen/video_item_search_title_text_size"/>
@ -72,19 +74,15 @@
android:layout_width="match_parent"
android:layout_height="@dimen/video_item_search_uploader_height"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="@dimen/video_item_search_uploader_text_size"
android:layout_toEndOf="@id/detailVideoTitleView"
android:layout_toRightOf="@id/detailVideoTitleView"/>
android:textSize="@dimen/video_item_search_uploader_text_size"/>
<TextView android:id="@+id/itemUploadDateView"
android:layout_width="match_parent"
android:layout_height="@dimen/video_item_search_upload_date_height"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="@dimen/video_item_search_upload_date_text_size"
android:layout_toEndOf="@id/itemUploaderView"
android:layout_toRightOf="@id/itemUploaderView"/>
android:textSize="@dimen/video_item_search_upload_date_text_size"/>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>

View File

@ -11,8 +11,8 @@
<!-- 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_uploader_height">14sp</dimen>
<dimen name="video_item_search_upload_date_height">14sp</dimen>
<dimen name="video_item_search_uploader_height">16sp</dimen>
<dimen name="video_item_search_upload_date_height">16sp</dimen>
<!-- Paddings & Margins -->
<dimen name="video_item_search_card_margin">3dp</dimen>
<dimen name="video_item_search_card_padding">6dp</dimen>