1
0

style: Update layouts to fit baguette phone and foldable

This commit is contained in:
Natsu 2024-06-18 18:48:34 +07:00
parent 8cd55a22cd
commit 1cdefbc80e
Signed by: NatsumeLS
GPG Key ID: 6DB67FB460CF46C6
2 changed files with 82 additions and 72 deletions

View File

@ -134,7 +134,7 @@
android:ems="10"
android:inputType="numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onTargetFpsChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.targetFrameRate}" />
@ -215,7 +215,7 @@
android:layout_height="match_parent"
android:ems="10"
android:onTextChanged="@{(s, st, b, a) -> listener.onLiveCustomeHeadIdChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={config.liveCustomeHeadId}" />
@ -240,7 +240,7 @@
android:layout_height="match_parent"
android:ems="10"
android:onTextChanged="@{(s, st, b, a) -> listener.onLiveCustomeCostumeIdChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={config.liveCustomeCostumeId}" />
@ -279,7 +279,7 @@
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/radioButtonGameDefault"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="@{config.gameOrientation == 0}"
@ -287,7 +287,7 @@
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/radioButtonGamePortrait"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="@{config.gameOrientation == 1}"
@ -295,7 +295,7 @@
<com.google.android.material.radiobutton.MaterialRadioButton
android:id="@+id/radioButtonGameLandscape"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="@{config.gameOrientation == 2}"
@ -351,57 +351,57 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/qualityRecordButton"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:layout_weight="0.75"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(4)}"
android:text="@string/max_high"
android:textSize="12sp" />
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/qualityVeryHighButton"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(3)}"
android:text="@string/very_high"
android:textSize="12sp" />
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/qualityHighButton"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:layout_weight="0.75"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(2)}"
android:text="@string/hign"
android:textSize="12sp" />
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/qualityMidButton"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:layout_weight="0.75"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(1)}"
android:text="@string/middle"
android:textSize="12sp" />
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/qualityLowButton"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:layout_weight="0.75"
android:minWidth="1sp"
android:onClick="@{() -> listener.onChangePresetQuality(0)}"
android:text="@string/low"
android:textSize="12sp" />
android:textSize="10sp" />
</LinearLayout>
@ -423,7 +423,7 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextRenderScaleLayout"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
@ -439,7 +439,7 @@
android:hint="0.5/0.59/0.67/0.77/1.0"
android:inputType="numberDecimal"
android:onTextChanged="@{(s, st, b, a) -> listener.onRenderScaleChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.renderScale}" />
@ -448,7 +448,7 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextQualitySettingsLevelLayout"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -463,7 +463,7 @@
android:hint="1/2/3/4/5"
android:inputType="number"
android:onTextChanged="@{(s, st, b, a) -> listener.onQualitySettingsLevelChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.qualitySettingsLevel}" />
@ -480,7 +480,7 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextVolumeIndexLayout"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
@ -496,7 +496,7 @@
android:hint="0/1/2/3/4"
android:inputType="number"
android:onTextChanged="@{(s, st, b, a) -> listener.onVolumeIndexChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.volumeIndex}" />
@ -505,7 +505,7 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextMaxBufferPixelLayout"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -520,7 +520,7 @@
android:hint="1024/1440/2538/3384/8190"
android:inputType="number"
android:onTextChanged="@{(s, st, b, a) -> listener.onMaxBufferPixelChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.maxBufferPixel}" />
@ -537,7 +537,7 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextReflectionQualityLevelLayout"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
@ -553,7 +553,7 @@
android:hint="1/2/3/4/5"
android:inputType="number"
android:onTextChanged="@{(s, st, b, a) -> listener.onReflectionQualityLevelChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.reflectionQualityLevel}" />
@ -562,7 +562,7 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextLodQualityLevelLayout"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -577,7 +577,7 @@
android:hint="1/2/3/4/5"
android:inputType="number"
android:onTextChanged="@{(s, st, b, a) -> listener.onLodQualityLevelChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.lodQualityLevel}" />
@ -636,57 +636,63 @@
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onBClickPresetChanged(5)}"
android:text="\??" />
android:text="\??"
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onBClickPresetChanged(4)}"
android:text="+5" />
android:text="+5"
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onBClickPresetChanged(3)}"
android:text="+4" />
android:text="+4"
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_margin="1sp"
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onBClickPresetChanged(2)}"
android:text="+3" />
android:text="+3"
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onBClickPresetChanged(1)}"
android:text="+2" />
android:text="+2"
android:textSize="10sp" />
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:layout_marginStart="1sp"
android:layout_weight="1"
android:minWidth="1sp"
android:onClick="@{() -> listener.onBClickPresetChanged(0)}"
android:text="+1" />
android:text="+1"
android:textSize="10sp" />
</LinearLayout>
@ -708,7 +714,7 @@
android:weightSum="2">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
@ -722,7 +728,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBDampingChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bDamping}" />
@ -730,7 +736,7 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -743,7 +749,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBStiffnessChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bStiffness}" />
@ -759,7 +765,7 @@
android:weightSum="2">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
@ -773,7 +779,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBSpringChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bSpring}" />
@ -781,7 +787,7 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -794,7 +800,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBPendulumChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bPendulum}" />
@ -810,7 +816,7 @@
android:weightSum="2">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
@ -824,7 +830,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBPendulumRangeChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bPendulumRange}" />
@ -832,7 +838,7 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -845,7 +851,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBAverageChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bAverage}" />
@ -873,7 +879,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBRootWeightChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bRootWeight}" />
@ -912,7 +918,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBScaleChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bScale}" />
@ -986,8 +992,9 @@
android:weightSum="3">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisx_x"
@ -999,7 +1006,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitXxChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitXx}" />
@ -1007,7 +1014,7 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -1020,7 +1027,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitYxChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitYx}" />
@ -1028,8 +1035,9 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginLeft="6dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisz_x"
@ -1041,7 +1049,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitZxChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitZx}" />
@ -1057,8 +1065,9 @@
android:weightSum="3">
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginRight="6dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisx_y"
@ -1070,7 +1079,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitXyChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitXy}" />
@ -1078,7 +1087,7 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:background="@android:color/transparent"
@ -1091,7 +1100,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitYyChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitYy}" />
@ -1099,8 +1108,9 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_marginLeft="6dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="@string/axisz_y"
@ -1112,7 +1122,7 @@
android:ems="10"
android:inputType="numberDecimal|numberSigned"
android:onTextChanged="@{(s, st, b, a) -> listener.onBLimitZyChanged(s, st, b, a)}"
android:paddingStart="0dp"
android:paddingStart="12dp"
android:paddingEnd="0dp"
android:paddingBottom="0dp"
android:text="@={`` + config.bLimitZy}" />

View File

@ -14,7 +14,7 @@
<string name="text_hook_test_mode">Text Hook Test Mode (For Testing Only)</string>
<string name="export_text">Export Text (For Collecting Strings)</string>
<string name="force_export_resource">Force Update Resource</string>
<string name="max_high">Ultra</string>
<string name="max_high">Max</string>
<string name="very_high">Very High</string>
<string name="hign">High</string>
<string name="middle">Med</string>