فهرست منبع

Fix manga info actions being cut off

arkon 4 سال پیش
والد
کامیت
135c371d88
1فایلهای تغییر یافته به همراه61 افزوده شده و 54 حذف شده
  1. 61 54
      app/src/main/res/layout/manga_info_header.xml

+ 61 - 54
app/src/main/res/layout/manga_info_header.xml

@@ -109,68 +109,75 @@
 
         </LinearLayout>
 
-        <LinearLayout
-            android:id="@+id/actions_bar"
+        <HorizontalScrollView
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:orientation="horizontal"
-            android:paddingStart="16dp"
-            android:paddingEnd="16dp"
+            android:requiresFadingEdge="horizontal"
             app:layout_constraintTop_toBottomOf="@+id/manga_info">
 
-            <com.google.android.material.button.MaterialButton
-                android:id="@+id/btn_favorite"
-                style="@style/Theme.Widget.Button.Icon"
+            <LinearLayout
+                android:id="@+id/actions_bar"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:text="@string/add_to_library"
-                app:icon="@drawable/ic_favorite_border_24dp" />
+                android:orientation="horizontal"
+                android:paddingStart="16dp"
+                android:paddingEnd="16dp">
 
-            <com.google.android.material.button.MaterialButton
-                android:id="@+id/btn_tracking"
-                style="@style/Theme.Widget.Button.Icon"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginStart="8dp"
-                android:text="@string/manga_tracking_tab"
-                android:visibility="gone"
-                app:icon="@drawable/ic_sync_24dp"
-                tools:visibility="visible" />
-
-            <com.google.android.material.button.MaterialButton
-                android:id="@+id/btn_categories"
-                style="@style/Theme.Widget.Button.Icon.Textless"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginStart="8dp"
-                android:contentDescription="@string/action_edit_categories"
-                android:visibility="gone"
-                app:icon="@drawable/ic_label_24dp"
-                tools:visibility="visible" />
-
-            <com.google.android.material.button.MaterialButton
-                android:id="@+id/btn_share"
-                style="@style/Theme.Widget.Button.Icon.Textless"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginStart="8dp"
-                android:contentDescription="@string/action_share"
-                android:visibility="gone"
-                app:icon="@drawable/ic_share_24dp"
-                tools:visibility="visible" />
-
-            <com.google.android.material.button.MaterialButton
-                android:id="@+id/btn_webview"
-                style="@style/Theme.Widget.Button.Icon.Textless"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginStart="8dp"
-                android:contentDescription="@string/action_open_in_web_view"
-                android:visibility="gone"
-                app:icon="@drawable/ic_public_24dp"
-                tools:visibility="visible" />
+                <com.google.android.material.button.MaterialButton
+                    android:id="@+id/btn_favorite"
+                    style="@style/Theme.Widget.Button.Icon"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/add_to_library"
+                    app:icon="@drawable/ic_favorite_border_24dp" />
 
-        </LinearLayout>
+                <com.google.android.material.button.MaterialButton
+                    android:id="@+id/btn_tracking"
+                    style="@style/Theme.Widget.Button.Icon"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginStart="8dp"
+                    android:text="@string/manga_tracking_tab"
+                    android:visibility="gone"
+                    app:icon="@drawable/ic_sync_24dp"
+                    tools:visibility="visible" />
+
+                <com.google.android.material.button.MaterialButton
+                    android:id="@+id/btn_categories"
+                    style="@style/Theme.Widget.Button.Icon.Textless"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginStart="8dp"
+                    android:contentDescription="@string/action_edit_categories"
+                    android:visibility="gone"
+                    app:icon="@drawable/ic_label_24dp"
+                    tools:visibility="visible" />
+
+                <com.google.android.material.button.MaterialButton
+                    android:id="@+id/btn_share"
+                    style="@style/Theme.Widget.Button.Icon.Textless"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginStart="8dp"
+                    android:contentDescription="@string/action_share"
+                    android:visibility="gone"
+                    app:icon="@drawable/ic_share_24dp"
+                    tools:visibility="visible" />
+
+                <com.google.android.material.button.MaterialButton
+                    android:id="@+id/btn_webview"
+                    style="@style/Theme.Widget.Button.Icon.Textless"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginStart="8dp"
+                    android:contentDescription="@string/action_open_in_web_view"
+                    android:visibility="gone"
+                    app:icon="@drawable/ic_public_24dp"
+                    tools:visibility="visible" />
+
+            </LinearLayout>
+
+        </HorizontalScrollView>
 
     </androidx.constraintlayout.widget.ConstraintLayout>