mirror of https://github.com/FongMi/TV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
4.9 KiB
122 lines
4.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/danmaku_setting"
|
|
android:textAppearance="?attr/textAppearanceHeadlineSmall"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/reset"
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/danmaku_reset"
|
|
android:textColor="?attr/colorPrimary" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
android:id="@+id/tabGroup"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginEnd="24dp"
|
|
android:layout_marginBottom="8dp"
|
|
app:selectionRequired="true"
|
|
app:singleSelection="true">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/tabAppearance"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/danmaku_section_appearance" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/tabTiming"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/danmaku_section_timing" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/tabDensity"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/danmaku_section_density" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/tabDisplay"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/danmaku_section_display" />
|
|
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
android:overScrollMode="never">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="24dp">
|
|
|
|
<include
|
|
android:id="@+id/appearance"
|
|
layout="@layout/view_danmaku_appearance"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible" />
|
|
|
|
<include
|
|
android:id="@+id/timing"
|
|
layout="@layout/view_danmaku_timing"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
<include
|
|
android:id="@+id/density"
|
|
layout="@layout/view_danmaku_density"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
<include
|
|
android:id="@+id/display"
|
|
layout="@layout/view_danmaku_display"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.appcompat.widget.LinearLayoutCompat> |