Skip to content

Commit b2f31ec

Browse files
committed
Add custom keymap switch
1 parent 8e88a07 commit b2f31ec

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

app/src/main/res/layout/activity_settings.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,17 @@
66
android:layout_height="match_parent"
77
tools:context=".SettingsActivity">
88

9+
<Switch
10+
android:id="@+id/switch1"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content"
13+
android:layout_marginEnd="8dp"
14+
android:layout_marginStart="8dp"
15+
android:layout_marginTop="28dp"
16+
android:switchPadding="20dp"
17+
android:text="@string/switch_label_custom_keymap"
18+
android:textSize="24sp"
19+
app:layout_constraintEnd_toEndOf="parent"
20+
app:layout_constraintStart_toStartOf="parent"
21+
app:layout_constraintTop_toTopOf="parent" />
922
</android.support.constraint.ConstraintLayout>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
<string name="about_description">CTROLLER for Android is a port of phijor\'s CTROLLER app for linux to android. It allows you to use your Nintendo 3DS as a game controller for android.</string>
88
<string name="about_version_header">Versions:</string>
99
<string name="settings_title">CTROLLER keymap</string>
10+
<string name="switch_label_custom_keymap">Use custom keymap?</string>
1011
</resources>

0 commit comments

Comments
 (0)