prevent soft keyboard from popping up on RepoDetails

Its quite annoying to have the URI EditText in focus and the soft keyboard
pop up when viewing the RepoDetails since the vast majority of the time,
the user will be viewing the info there, not editing the URL.

This commit just moves the focus to the frame, and prevents the soft
keyboard from showing up by default.  The user can still click on the URI
EditText to edit it and the soft keyboard will pop up.
This commit is contained in:
Hans-Christoph Steiner 2014-01-24 11:13:17 -05:00
parent 510e8e1ba5
commit 126d96e4ba
2 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,8 @@
<activity
android:name=".views.RepoDetailsActivity"
android:label="@string/menu_manage"
android:parentActivityName=".ManageRepo" />
android:parentActivityName=".ManageRepo"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".AppDetails"

View File

@ -4,6 +4,8 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:focusable="true"
android:focusableInTouchMode="true"
android:paddingTop="@dimen/padding_top"
android:paddingLeft="@dimen/padding_side"
android:paddingRight="@dimen/padding_side">