Added clear (x) button to Callee field using MaterialAutoCompleteTextView
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/aorSpinner"
|
android:layout_below="@id/aorSpinner"
|
||||||
android:layout_marginTop="12dp"
|
android:layout_marginTop="10dp"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -79,37 +79,46 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<RelativeLayout
|
||||||
android:id="@+id/uriRow"
|
android:id="@+id/uriRow"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/callTitleRow" >
|
android:layout_below="@id/callTitleRow"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<AutoCompleteTextView
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/callUri"
|
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight = "1"
|
android:layout_gravity="center_vertical"
|
||||||
android:inputType="textEmailAddress"
|
android:layout_marginEnd="32dp"
|
||||||
android:textSize="20sp"
|
app:endIconMode="clear_text">
|
||||||
android:hint="@string/callee"
|
|
||||||
android:textColorHint="@color/colorSecondaryDark" >
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
||||||
<!-- <requestFocus /> -->
|
android:id="@+id/callUri"
|
||||||
</AutoCompleteTextView>
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="32dp"
|
||||||
|
android:completionThreshold="3"
|
||||||
|
android:inputType="textEmailAddress"
|
||||||
|
android:textColorHint="@color/colorSecondaryDark"
|
||||||
|
android:textSize="20sp" />
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/securityButton"
|
android:id="@+id/securityButton"
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:layout_weight ="0"
|
android:layout_marginEnd="0dp"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
android:background="#00000000"
|
android:background="#00000000"
|
||||||
android:contentDescription="@string/app_name" >
|
android:contentDescription="@string/app_name" >
|
||||||
</ImageButton>
|
</ImageButton>
|
||||||
|
|
||||||
</LinearLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/diverter"
|
android:id="@+id/diverter"
|
||||||
@@ -156,7 +165,7 @@
|
|||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/diverter"
|
android:layout_below="@id/diverter"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="12dp"
|
||||||
android:paddingBottom="10dp" >
|
android:paddingBottom="10dp" >
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
|
|||||||
Reference in New Issue
Block a user