first
This commit is contained in:
54
app/src/main/res/layout/include_search_round_layout.xml
Normal file
54
app/src/main/res/layout/include_search_round_layout.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<RelativeLayout
|
||||
android:id="@+id/relative_search"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:background="@drawable/shape_search_round_bg">
|
||||
<ImageView
|
||||
android:id="@+id/img_search"
|
||||
android:layout_width="@dimen/dp_18"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/dp_12"
|
||||
android:src="@mipmap/icon_search"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_search"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="@dimen/dp_12"
|
||||
android:textColor="@color/color_1a72ff"
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:text="搜索"
|
||||
android:visibility="gone"/>
|
||||
<ImageView
|
||||
android:id="@+id/img_clear"
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="@dimen/dp_4"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_search"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/dp_12"
|
||||
android:layout_marginRight="@dimen/dp_10"
|
||||
android:layout_toLeftOf="@+id/img_clear"
|
||||
android:layout_toRightOf="@+id/img_search"
|
||||
android:background="@null"
|
||||
android:hint="搜索"
|
||||
android:imeOptions="actionDone"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/color_gray_tab"
|
||||
android:textSize="13sp" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user