Hopefully fixes problems with pasting into edittext

This commit is contained in:
Martin Fietz 2015-07-08 11:09:36 +02:00
parent 0d2f99a1a7
commit 40fd08b841
7 changed files with 52 additions and 13 deletions

View File

@ -15,7 +15,10 @@
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:layout_margin="16dp" android:layout_margin="16dp"
android:hint="@string/username_label"/> android:hint="@string/username_label"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<EditText <EditText
android:id="@+id/etxtPassword" android:id="@+id/etxtPassword"
@ -24,7 +27,10 @@
android:layout_weight="1" android:layout_weight="1"
android:layout_margin="16dp" android:layout_margin="16dp"
android:inputType="textPassword" android:inputType="textPassword"
android:hint="@string/password_label"/> android:hint="@string/password_label"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<CheckBox <CheckBox
android:id="@+id/chkSaveUsernamePassword" android:id="@+id/chkSaveUsernamePassword"

View File

@ -31,7 +31,10 @@
android:layout_margin="16dp" android:layout_margin="16dp"
android:id="@+id/etxtUsername" android:id="@+id/etxtUsername"
android:hint="@string/username_label" android:hint="@string/username_label"
android:layout_below="@id/txtvDescription"/> android:layout_below="@id/txtvDescription"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<EditText <EditText
android:layout_width="match_parent" android:layout_width="match_parent"
@ -40,7 +43,10 @@
android:id="@+id/etxtPassword" android:id="@+id/etxtPassword"
android:hint="@string/password_label" android:hint="@string/password_label"
android:inputType="textPassword" android:inputType="textPassword"
android:layout_below="@id/etxtUsername"/> android:layout_below="@id/etxtUsername"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<RelativeLayout <RelativeLayout
android:id="@+id/footer" android:id="@+id/footer"

View File

@ -27,7 +27,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:hint="@string/etxtFeedurlHint" android:hint="@string/etxtFeedurlHint"
android:inputType="textUri"/> android:inputType="textUri"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<Button <Button
android:id="@+id/butConfirm" android:id="@+id/butConfirm"

View File

@ -16,7 +16,10 @@
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:layout_margin="16dp" android:layout_margin="16dp"
android:hint="@string/username_label"/> android:hint="@string/username_label"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<EditText <EditText
android:id="@+id/etxtPassword" android:id="@+id/etxtPassword"
@ -25,7 +28,10 @@
android:layout_weight="1" android:layout_weight="1"
android:layout_margin="16dp" android:layout_margin="16dp"
android:inputType="textPassword" android:inputType="textPassword"
android:hint="@string/password_label"/> android:hint="@string/password_label"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<CheckBox <CheckBox
android:id="@+id/chkSaveUsernamePassword" android:id="@+id/chkSaveUsernamePassword"

View File

@ -31,7 +31,10 @@
android:layout_margin="16dp" android:layout_margin="16dp"
android:id="@+id/etxtUsername" android:id="@+id/etxtUsername"
android:hint="@string/username_label" android:hint="@string/username_label"
android:layout_below="@id/txtvDescription"/> android:layout_below="@id/txtvDescription"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<EditText <EditText
android:layout_width="match_parent" android:layout_width="match_parent"
@ -40,7 +43,10 @@
android:id="@+id/etxtPassword" android:id="@+id/etxtPassword"
android:hint="@string/password_label" android:hint="@string/password_label"
android:inputType="textPassword" android:inputType="textPassword"
android:layout_below="@id/etxtUsername"/> android:layout_below="@id/etxtUsername"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<LinearLayout <LinearLayout
android:id="@+id/footer" android:id="@+id/footer"

View File

@ -204,7 +204,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_row="0" app:layout_row="0"
app:layout_column="1" app:layout_column="1"
android:hint="@string/username_label"/> android:hint="@string/username_label"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<TextView <TextView
android:id="@+id/txtvPassword" android:id="@+id/txtvPassword"
@ -215,7 +218,10 @@
app:layout_row="1" app:layout_row="1"
app:layout_column="0" app:layout_column="0"
android:text="@string/password_label" android:text="@string/password_label"
android:textColor="?android:attr/textColorPrimary"/> android:textColor="?android:attr/textColorPrimary"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<EditText <EditText
android:id="@+id/etxtPassword" android:id="@+id/etxtPassword"

View File

@ -30,7 +30,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/username_label" android:hint="@string/username_label"
android:layout_below="@id/txtvDescription" android:layout_below="@id/txtvDescription"
android:layout_margin="8dp"/> android:layout_margin="8dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<EditText <EditText
android:id="@+id/etxtPassword" android:id="@+id/etxtPassword"
@ -39,7 +42,10 @@
android:hint="@string/password_label" android:hint="@string/password_label"
android:layout_below="@id/etxtUsername" android:layout_below="@id/etxtUsername"
android:inputType="textPassword" android:inputType="textPassword"
android:layout_margin="8dp"/> android:layout_margin="8dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:cursorVisible="true"/>
<Button <Button
android:id="@+id/butLogin" android:id="@+id/butLogin"