Make import and export buttons have text

This commit is contained in:
PabloG02 2023-04-08 01:37:24 +02:00 committed by Billy Laws
parent 9bcbb3af47
commit 3dbd47082d
2 changed files with 32 additions and 34 deletions

View File

@ -84,7 +84,7 @@
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.flexbox.FlexboxLayout <com.google.android.flexbox.FlexboxLayout
android:id="@+id/flexboxLayout1" android:id="@+id/flexboxGeneral"
style="@style/ThemeOverlay.Material3.Button.IconButton.Filled.Tonal" style="@style/ThemeOverlay.Material3.Button.IconButton.Filled.Tonal"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -130,28 +130,48 @@
</com.google.android.flexbox.FlexboxLayout> </com.google.android.flexbox.FlexboxLayout>
<TextView
android:id="@+id/save_management"
style="?attr/textAppearanceLabelLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/save_management"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/flexboxGeneral" />
<com.google.android.flexbox.FlexboxLayout <com.google.android.flexbox.FlexboxLayout
android:id="@+id/flexboxSaves"
style="@style/ThemeOverlay.Material3.Button.IconButton.Filled.Tonal" style="@style/ThemeOverlay.Material3.Button.IconButton.Filled.Tonal"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
app:alignItems="center" app:alignItems="center"
app:flexWrap="nowrap" app:flexWrap="nowrap"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/flexboxLayout1" app:layout_constraintTop_toBottomOf="@+id/save_management"
app:layout_constraintVertical_bias="1"> app:layout_constraintVertical_bias="1">
<TextView <com.google.android.material.button.MaterialButton
android:id="@+id/textView" android:id="@+id/import_save"
style="?attr/textAppearanceBodyMedium" style="@style/Widget.Material3.Button.TonalButton.Icon"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/save_management" android:contentDescription="@string/import_save"
android:textAlignment="center" android:text="@string/import_save"
app:layout_maxWidth="140dp" /> app:icon="@drawable/ic_add" />
<com.google.android.material.button.MaterialButton
android:id="@+id/export_save"
style="@style/Widget.Material3.Button.TonalButton.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:contentDescription="@string/export_save"
android:text="@string/export_save"
app:icon="@drawable/ic_share" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/delete_save" android:id="@+id/delete_save"
@ -164,28 +184,6 @@
app:icon="@drawable/ic_delete" app:icon="@drawable/ic_delete"
app:iconGravity="textStart" /> app:iconGravity="textStart" />
<com.google.android.material.button.MaterialButton
android:id="@+id/import_save"
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:contentDescription="@string/import_save"
android:tooltipText="@string/import_save"
app:icon="@drawable/ic_add"
app:iconGravity="textStart" />
<com.google.android.material.button.MaterialButton
android:id="@+id/export_save"
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
android:layout_width="48dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:contentDescription="@string/export_save"
android:tooltipText="@string/export_save"
app:icon="@drawable/ic_share"
app:iconGravity="textStart" />
</com.google.android.flexbox.FlexboxLayout> </com.google.android.flexbox.FlexboxLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout> </LinearLayout>

View File

@ -22,8 +22,8 @@
<string name="play">Play</string> <string name="play">Play</string>
<string name="save_management">Save management</string> <string name="save_management">Save management</string>
<string name="delete_save">Delete save</string> <string name="delete_save">Delete save</string>
<string name="import_save">Import save</string> <string name="import_save">Import</string>
<string name="export_save">Export save</string> <string name="export_save">Export</string>
<string name="searching_roms">Searching for ROMs</string> <string name="searching_roms">Searching for ROMs</string>
<string name="invalid_file">Invalid file</string> <string name="invalid_file">Invalid file</string>
<string name="missing_title_key">Missing title key</string> <string name="missing_title_key">Missing title key</string>