Android: Support scaling touchscreen buttons

This commit is contained in:
Connor McLaughlin
2021-04-10 18:51:09 +10:00
parent 3c83ef4939
commit 20ed6913a9
9 changed files with 181 additions and 57 deletions

View File

@ -6,22 +6,11 @@
android:layout_height="match_parent">
<Button
android:id="@+id/stop_editing"
android:id="@+id/options"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/touchscreen_controller_stop_editing"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/reset_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="64dp"
android:text="@string/touchscreen_controller_reset_layout"
android:text="@string/touchscreen_controller_edit_menu"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"

View File

@ -102,8 +102,17 @@
<item>Mudar</item>
<item>Ajustar Visibilidade</item>
<item>Adicionar/Remover botões</item>
<item>Mudar Layout</item>
</string-array>
<item>Move Buttons</item>
<item>Resize Buttons</item>
</string-array>
<string-array name="touchscreen_layout_menu">
<item>Change Opacity</item>
<item>Add/Remove Buttons</item>
<item>Move Buttons</item>
<item>Resize Buttons</item>
<item>Reset Layout</item>
<item>Exit Editor</item>
</string-array>
<string-array name="settings_cdrom_read_speedup_entries">
<item>Nenhum</item>
<item>2x (4x Veloz)</item>

View File

@ -102,7 +102,16 @@
<item>Сменить вид</item>
<item>Настроить видимость</item>
<item>Добавить/убрать кнопки</item>
<item>Изменить макет</item>
<item>Move Buttons</item>
<item>Resize Buttons</item>
</string-array>
<string-array name="touchscreen_layout_menu">
<item>Change Opacity</item>
<item>Add/Remove Buttons</item>
<item>Move Buttons</item>
<item>Resize Buttons</item>
<item>Reset Layout</item>
<item>Exit Editor</item>
</string-array>
<string-array name="settings_cdrom_read_speedup_entries">
<item>Нет (двойная скорость)</item>

View File

@ -185,7 +185,16 @@
<item>Change Type</item>
<item>Change Opacity</item>
<item>Add/Remove Buttons</item>
<item>Edit Layout</item>
<item>Move Buttons</item>
<item>Resize Buttons</item>
</string-array>
<string-array name="touchscreen_layout_menu">
<item>Change Opacity</item>
<item>Add/Remove Buttons</item>
<item>Move Buttons</item>
<item>Resize Buttons</item>
<item>Reset Layout</item>
<item>Exit Editor</item>
</string-array>
<string-array name="settings_cdrom_read_speedup_entries">
<item>None (Double Speed)</item>

View File

@ -330,4 +330,5 @@
<string name="update_notes_message_version_controller_update">This DuckStation update includes support for multiple controllers with vibration, and binding devices such as keyboards/volume buttons.\n\nYou must re-bind your controllers, otherwise they will no longer function. Do you want to do this now?</string>
<string name="settings_osd_show_show_inputs">Show Controller Input</string>
<string name="settings_summary_osd_show_inputs">Shows the current controller state of the system in the bottom-left corner of the display.</string>
<string name="touchscreen_controller_edit_menu">Edit Menu</string>
</resources>