From 50f3ca027bdb84d7ffe45b7b1826fefcdc37fab9 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 09 十二月 2024 16:48:52 +0800 Subject: [PATCH] 2024年12月09日16:48:50 --- countrypicker/src/main/res/layout/dialog_country_picker.xml | 62 +++++++++++++++++++++++++------ 1 files changed, 50 insertions(+), 12 deletions(-) diff --git a/countrypicker/src/main/res/layout/dialog_country_picker.xml b/countrypicker/src/main/res/layout/dialog_country_picker.xml index a8466b5..69c3d31 100644 --- a/countrypicker/src/main/res/layout/dialog_country_picker.xml +++ b/countrypicker/src/main/res/layout/dialog_country_picker.xml @@ -2,28 +2,66 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@drawable/oval_color_white_36" + android:background="@drawable/search_bj" android:orientation="vertical"> - <EditText - android:id="@+id/et_search" + <RelativeLayout android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="35dp" android:layout_margin="10dp" - android:drawableLeft="@android:drawable/ic_menu_search" - android:hint="@string/search" - android:textSize="32sp" - android:textColor="#888" - android:imeOptions="actionSearch" - android:maxLines="1"/> + android:layout_marginStart="7dp" + android:layout_marginEnd="21dp"> + + <ImageView + android:id="@+id/search_iv" + android:layout_width="18dp" + android:layout_height="18dp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:layout_marginStart="13dp" + android:src="@drawable/search_path" /> + + <EditText + android:id="@+id/et_search" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:layout_marginStart="11dp" + android:layout_marginEnd="40dp" + android:layout_toEndOf="@+id/search_iv" + android:background="@null" + android:gravity="start|center_vertical" + android:hint="@string/search" + android:textColor="#E6FFFFFF" + android:textColorHint="#66FFFFFF" + android:textSize="14sp" /> + </RelativeLayout> + + <View + android:id="@+id/line1_v" + android:layout_width="match_parent" + android:layout_height="0.5dp" + android:background="#1AFFFFFF" /> + <!-- <EditText--> + <!-- android:id="@+id/et_search"--> + <!-- android:layout_width="match_parent"--> + <!-- android:layout_height="wrap_content"--> + <!-- android:layout_margin="10dp"--> + <!-- android:drawableLeft="@drawable/search_path"--> + <!-- android:hint="@string/search"--> + <!-- android:textSize="14sp"--> + <!-- android:textColor="#E6FFFFFF"--> + <!-- android:textColorHint="#66FFFFFF"--> + <!-- android:imeOptions="actionSearch"--> + <!-- android:maxLines="1"/>--> <androidx.recyclerview.widget.RecyclerView android:id="@+id/rv_country" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginBottom="10dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" - /> + android:layout_marginBottom="10dp" /> </LinearLayout> \ No newline at end of file -- Gitblit v1.8.0