|
5 | 5 | android:layout_height="wrap_content" |
6 | 6 | android:orientation="vertical"> |
7 | 7 |
|
8 | | - <RelativeLayout |
9 | | - android:id="@+id/sortButton" |
10 | | - android:layout_width="wrap_content" |
| 8 | + <LinearLayout |
| 9 | + android:layout_width="match_parent" |
11 | 10 | android:layout_height="wrap_content" |
12 | | - android:background="?attr/selectableItemBackground" |
13 | | - android:clickable="true" |
14 | | - android:focusable="true"> |
15 | | - |
16 | | - <ImageView |
17 | | - android:id="@+id/sortButtonIcon" |
18 | | - android:layout_width="48dp" |
19 | | - android:layout_height="28dp" |
20 | | - android:layout_alignParentLeft="true" |
21 | | - android:layout_centerVertical="true" |
22 | | - android:layout_marginLeft="12dp" |
23 | | - android:layout_marginRight="12dp" |
24 | | - android:src="@drawable/ic_filter_list" |
25 | | - tools:ignore="ContentDescription,RtlHardcoded" /> |
26 | | - |
27 | | - <org.schabi.newpipe.views.NewPipeTextView |
28 | | - android:id="@+id/sortButtonText" |
29 | | - android:layout_width="match_parent" |
30 | | - android:layout_height="50dp" |
31 | | - android:layout_toRightOf="@id/sortButtonIcon" |
32 | | - android:gravity="left|center" |
33 | | - android:text="@string/title_most_played" |
34 | | - android:textAppearance="?android:attr/textAppearanceLarge" |
35 | | - android:textSize="15sp" |
36 | | - android:textStyle="bold" |
37 | | - tools:ignore="RtlHardcoded" /> |
38 | | - </RelativeLayout> |
| 11 | + android:orientation="horizontal"> |
| 12 | + |
| 13 | + <RelativeLayout |
| 14 | + android:id="@+id/sortButton" |
| 15 | + android:layout_width="0dp" |
| 16 | + android:layout_height="wrap_content" |
| 17 | + android:layout_weight="1" |
| 18 | + android:background="?attr/selectableItemBackground" |
| 19 | + android:clickable="true" |
| 20 | + android:focusable="true"> |
| 21 | + |
| 22 | + <ImageView |
| 23 | + android:id="@+id/sortButtonIcon" |
| 24 | + android:layout_width="48dp" |
| 25 | + android:layout_height="28dp" |
| 26 | + android:layout_alignParentStart="true" |
| 27 | + android:layout_centerVertical="true" |
| 28 | + android:layout_marginStart="12dp" |
| 29 | + android:layout_marginEnd="12dp" |
| 30 | + android:src="@drawable/ic_filter_list" |
| 31 | + tools:ignore="ContentDescription" /> |
| 32 | + |
| 33 | + <org.schabi.newpipe.views.NewPipeTextView |
| 34 | + android:id="@+id/sortButtonText" |
| 35 | + android:layout_width="wrap_content" |
| 36 | + android:layout_height="50dp" |
| 37 | + android:layout_toEndOf="@id/sortButtonIcon" |
| 38 | + android:gravity="start|center_vertical" |
| 39 | + android:text="@string/title_most_played" |
| 40 | + android:textSize="15sp" |
| 41 | + android:textStyle="bold" /> |
| 42 | + </RelativeLayout> |
| 43 | + |
| 44 | + <RelativeLayout |
| 45 | + android:id="@+id/fullyWatchedFilterButton" |
| 46 | + android:layout_width="0dp" |
| 47 | + android:layout_height="wrap_content" |
| 48 | + android:layout_weight="1" |
| 49 | + android:background="?attr/selectableItemBackground" |
| 50 | + android:clickable="true" |
| 51 | + android:focusable="true"> |
| 52 | + |
| 53 | + <CheckBox |
| 54 | + android:id="@+id/fullyWatchedFilterButtonCheckBox" |
| 55 | + android:layout_width="wrap_content" |
| 56 | + android:layout_height="wrap_content" |
| 57 | + android:layout_alignParentStart="true" |
| 58 | + android:layout_centerVertical="true" |
| 59 | + android:layout_marginStart="12dp" |
| 60 | + android:layout_marginEnd="12dp" |
| 61 | + android:checked="true"/> |
| 62 | + |
| 63 | + <org.schabi.newpipe.views.NewPipeTextView |
| 64 | + android:id="@+id/fullyWatchedFilterButtonText" |
| 65 | + android:layout_width="wrap_content" |
| 66 | + android:layout_height="50dp" |
| 67 | + android:layout_toEndOf="@id/fullyWatchedFilterButtonCheckBox" |
| 68 | + android:gravity="start|center_vertical" |
| 69 | + android:text="@string/title_fully_watched" |
| 70 | + android:textSize="15sp" |
| 71 | + android:textStyle="bold" /> |
| 72 | + </RelativeLayout> |
| 73 | + |
| 74 | + </LinearLayout> |
39 | 75 |
|
40 | 76 | <include |
41 | 77 | android:id="@+id/playlist_control" |
|
0 commit comments