Skip to content

Commit 5a4b67d

Browse files
committed
fixed bug with back button, changed all textboxes to close keyboard when done
1 parent 7e308d8 commit 5a4b67d

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Language Recorder
22
An Android application for capturing language.<br /><br />
3-
You'll need to create a file named /app/src/main/java/com/example/lachlan/myfirstapp/DropBoxSettings.java with the dropbox App Key and App Secret in it in order to compiled the code.
3+
You'll need to create a file named /app/src/main/java/com/example/lachlan/myfirstapp/DropBoxSettings.java with the dropbox App Key and App Secret in it in order to compile the code.

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</intent-filter>
2222
</activity>
2323
<activity
24+
android:launchMode="singleTop"
2425
android:name=".HomeActivity"
2526
android:label="@string/home_title" >
2627
</activity>

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
android:id="@+id/nameEditText"
2323
android:singleLine="true"
2424
android:hint=""
25+
android:imeOptions="actionDone"
2526
android:inputType="textNoSuggestions"
2627
android:layout_marginBottom="10px"
2728
android:layout_width="match_parent"
@@ -46,6 +47,7 @@
4647
android:id="@+id/ageEditText"
4748
android:singleLine="true"
4849
android:inputType="number"
50+
android:imeOptions="actionDone"
4951
android:layout_marginBottom="10px"
5052
android:layout_width="match_parent"
5153
android:layout_height="wrap_content" />
@@ -92,6 +94,7 @@
9294
android:nextFocusDown="@+id/locationYearsEditText"
9395
android:id="@+id/locationEditText"
9496
android:singleLine="true"
97+
android:imeOptions="actionDone"
9598
android:layout_marginBottom="10px"
9699
android:inputType="textNoSuggestions"
97100
android:layout_width="match_parent"
@@ -115,6 +118,7 @@
115118
android:nextFocusDown="@+id/autocomplete_first_language"
116119
android:singleLine="true"
117120
android:inputType="number"
121+
android:imeOptions="actionDone"
118122
android:layout_width="match_parent"
119123
android:layout_height="wrap_content" />
120124
</LinearLayout>
@@ -140,6 +144,7 @@
140144
<AutoCompleteTextView xmlns:android="http://schemas.android.com/apk/res/android"
141145
android:id="@+id/autocomplete_first_language"
142146
android:nextFocusDown="@+id/autocomplete_second_language"
147+
android:imeOptions="actionDone"
143148
android:singleLine="true"
144149
android:layout_width="fill_parent"
145150
android:layout_height="wrap_content" />
@@ -159,6 +164,7 @@
159164
<AutoCompleteTextView xmlns:android="http://schemas.android.com/apk/res/android"
160165
android:id="@+id/autocomplete_second_language"
161166
android:nextFocusDown="@+id/autocomplete_third_language"
167+
android:imeOptions="actionDone"
162168
android:singleLine="true"
163169
android:layout_width="fill_parent"
164170
android:layout_height="wrap_content" />
@@ -185,6 +191,7 @@
185191
<AutoCompleteTextView xmlns:android="http://schemas.android.com/apk/res/android"
186192
android:id="@+id/autocomplete_third_language"
187193
android:nextFocusDown="@+id/autocomplete_other_languages"
194+
android:imeOptions="actionDone"
188195
android:singleLine="true"
189196
android:layout_width="fill_parent"
190197
android:layout_height="wrap_content" />
@@ -203,6 +210,7 @@
203210

204211
<AutoCompleteTextView xmlns:android="http://schemas.android.com/apk/res/android"
205212
android:id="@+id/autocomplete_other_languages"
213+
android:imeOptions="actionDone"
206214
android:singleLine="true"
207215
android:layout_width="fill_parent"
208216
android:layout_height="wrap_content" />

0 commit comments

Comments
 (0)