mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 04:22:30 +01:00
Duration now with the thumbnail, more space for upload date
This commit is contained in:
parent
f915291396
commit
5d77d25d34
5
app/src/main/res/drawable/durationback.xml
Normal file
5
app/src/main/res/drawable/durationback.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
|
||||
<solid android:color="#000000" />
|
||||
<stroke android:width="1dip" android:color="#4fa5d5"/>
|
||||
</shape>
|
@ -30,15 +30,35 @@
|
||||
android:layout_toRightOf="@id/itemThumbnailView"
|
||||
android:layout_below="@id/itemVideoTitleView"
|
||||
android:paddingLeft="6dp"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textSize="@dimen/text_search_uploader_size"/>
|
||||
|
||||
<TextView android:id="@+id/itemDurationView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@id/itemThumbnailView"
|
||||
android:layout_alignRight="@id/itemThumbnailView"
|
||||
android:layout_marginRight="6dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="1dp"
|
||||
android:paddingBottom="1dp"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textSize="@dimen/text_search_duration_size"
|
||||
android:background="@drawable/durationback"
|
||||
android:textColor="#ffffff"
|
||||
/>
|
||||
|
||||
<TextView android:text="Upload date here"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/itemUploaderView"
|
||||
android:layout_below="@id/itemVideoTitleView"
|
||||
android:paddingLeft="6dp"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textSize="@dimen/text_search_uploadtime_size"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="text_search_title_size">16sp</dimen>
|
||||
<dimen name="text_search_duration_size">11sp</dimen>
|
||||
<dimen name="text_search_uploader_size">12sp</dimen>
|
||||
<dimen name="text_search_uploadtime_size">12sp</dimen>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user