|
40 | 40 | android:layout_height="match_parent" |
41 | 41 | android:layout_gravity="center" |
42 | 42 | android:layout_marginHorizontal="1dp" |
43 | | - android:layout_marginVertical="10dp" |
| 43 | + android:layout_marginTop="10dp" |
| 44 | + android:layout_marginBottom="4dp" |
44 | 45 | android:orientation="horizontal"> |
45 | 46 |
|
46 | 47 | <com.google.android.material.imageview.ShapeableImageView |
|
82 | 83 |
|
83 | 84 | </LinearLayout> |
84 | 85 |
|
85 | | - <com.google.android.material.button.MaterialButton |
86 | | - android:id="@+id/channel_subscribe" |
87 | | - style="@style/PlayerActionsButton" |
| 86 | + <com.google.android.material.button.MaterialButtonGroup |
| 87 | + style="@style/Widget.Material3.MaterialButtonGroup.Connected" |
88 | 88 | android:layout_width="wrap_content" |
89 | 89 | android:layout_height="wrap_content" |
90 | | - android:stateListAnimator="@null" |
91 | | - android:text="@string/subscribe" |
92 | | - android:textSize="12sp" |
93 | | - tools:targetApi="m" /> |
94 | | - |
95 | | - </LinearLayout> |
96 | | - |
97 | | - <HorizontalScrollView |
98 | | - android:layout_width="match_parent" |
99 | | - android:layout_height="wrap_content" |
100 | | - android:scrollbars="none"> |
101 | | - |
102 | | - <LinearLayout |
103 | | - android:layout_width="wrap_content" |
104 | | - android:layout_height="wrap_content" |
105 | | - android:orientation="horizontal"> |
| 90 | + android:gravity="center_vertical"> |
106 | 91 |
|
107 | 92 | <com.google.android.material.button.MaterialButton |
108 | | - android:id="@+id/channel_share" |
109 | | - style="@style/PlayerActionsButton" |
110 | | - android:text="@string/share" |
111 | | - android:textSize="12sp" |
112 | | - android:tooltipText="@string/share" |
113 | | - app:icon="@drawable/ic_share" |
114 | | - tools:targetApi="m" /> |
| 93 | + android:id="@+id/channel_subscribe" |
| 94 | + style="?materialButtonStyle" |
| 95 | + android:layout_width="wrap_content" |
| 96 | + android:layout_height="wrap_content" |
| 97 | + android:text="@string/subscribe" |
| 98 | + android:maxLines="1"/> |
115 | 99 |
|
116 | 100 | <com.google.android.material.button.MaterialButton |
117 | 101 | android:id="@+id/notification_bell" |
118 | | - style="@style/PlayerActionsButton" |
119 | | - android:text="@string/notifications" |
120 | | - android:textSize="12sp" |
| 102 | + style="?materialIconButtonFilledStyle" |
| 103 | + android:layout_width="wrap_content" |
| 104 | + android:layout_height="wrap_content" |
121 | 105 | android:tooltipText="@string/notifications" |
122 | | - app:icon="@drawable/ic_notification" |
123 | | - tools:targetApi="m" /> |
124 | | - |
125 | | - <com.google.android.material.button.MaterialButton |
126 | | - android:id="@+id/add_to_group" |
127 | | - style="@style/PlayerActionsButton" |
128 | | - android:text="@string/add_to_group" |
129 | | - android:textSize="12sp" |
130 | | - android:tooltipText="@string/add_to_group" |
131 | | - app:icon="@drawable/ic_add" |
132 | | - tools:targetApi="m" /> |
| 106 | + app:icon="@drawable/ic_notification" /> |
133 | 107 |
|
134 | 108 | <com.google.android.material.button.MaterialButton |
135 | | - android:id="@+id/play_all" |
136 | | - style="@style/PlayerActionsButton" |
137 | | - android:text="@string/play_latest_videos" |
138 | | - android:textSize="12sp" |
139 | | - android:tooltipText="@string/play_latest_videos" |
140 | | - app:icon="@drawable/ic_playlist" |
141 | | - tools:targetApi="m" /> |
| 109 | + android:id="@+id/show_more" |
| 110 | + style="?attr/materialIconButtonFilledStyle" |
| 111 | + android:layout_width="wrap_content" |
| 112 | + android:layout_height="wrap_content" |
| 113 | + android:tooltipText="@string/misc" |
| 114 | + app:icon="@drawable/ic_three_dots" /> |
142 | 115 |
|
143 | | - </LinearLayout> |
| 116 | + </com.google.android.material.button.MaterialButtonGroup> |
144 | 117 |
|
145 | | - </HorizontalScrollView> |
| 118 | + </LinearLayout> |
146 | 119 |
|
147 | 120 | <com.github.libretube.ui.views.ExpandableTextView |
148 | 121 | android:id="@+id/channel_description" |
149 | 122 | android:layout_width="match_parent" |
150 | 123 | android:layout_height="wrap_content" |
151 | | - android:layout_marginHorizontal="5dp" |
152 | 124 | android:padding="10dp" /> |
153 | 125 |
|
154 | 126 | </LinearLayout> |
|
0 commit comments