change HttpsEditText to generic PrefixEditText
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
@@ -37,7 +38,7 @@
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/linked_create_https_1_3" />
|
||||
|
||||
<org.sufficientlysecure.keychain.ui.widget.HttpsPrefixedText
|
||||
<org.sufficientlysecure.keychain.ui.widget.PrefixedEditText
|
||||
android:id="@+id/linked_create_https_uri"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -46,6 +47,7 @@
|
||||
android:ems="10"
|
||||
android:inputType="textUri"
|
||||
android:layout_gravity="center_horizontal"
|
||||
custom:prefix="https://"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
@@ -37,7 +39,7 @@
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/linked_create_twitter_1_3" />
|
||||
|
||||
<EditText
|
||||
<org.sufficientlysecure.keychain.ui.widget.PrefixedEditText
|
||||
android:id="@+id/linked_create_twitter_handle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -45,7 +47,9 @@
|
||||
android:layout_marginTop="16dp"
|
||||
android:ems="10"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:hint="@string/linked_create_twitter_handle"/>
|
||||
android:hint="@string/linked_create_twitter_handle"
|
||||
custom:prefix="\@"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -29,4 +29,8 @@
|
||||
<attr name="color_strong" format="color" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="PrefixedEditText">
|
||||
<attr name="prefix" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user