update
This commit is contained in:
5
OneToOne/src/main/res/drawable/bg_home_search_btn.xml
Normal file
5
OneToOne/src/main/res/drawable/bg_home_search_btn.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/bg_search_select" android:state_checked="true"/>
|
||||
<item android:drawable="@drawable/bg_search_unselect" android:state_checked="false"/>
|
||||
</selector>
|
||||
5
OneToOne/src/main/res/drawable/bg_home_search_text.xml
Normal file
5
OneToOne/src/main/res/drawable/bg_home_search_text.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="#FFFFFF" android:state_checked="true"/>
|
||||
<item android:color="#333333" android:state_checked="false"/>
|
||||
</selector>
|
||||
5
OneToOne/src/main/res/drawable/bg_search_input_2.xml
Normal file
5
OneToOne/src/main/res/drawable/bg_search_input_2.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="20dp"/>
|
||||
<solid android:color="#F6F6F6"/>
|
||||
</shape>
|
||||
9
OneToOne/src/main/res/drawable/bg_search_select.xml
Normal file
9
OneToOne/src/main/res/drawable/bg_search_select.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="62dp" android:height="27dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#ffa279e4" />
|
||||
<corners android:topLeftRadius="14dp" android:topRightRadius="14dp" android:bottomLeftRadius="14dp" android:bottomRightRadius="14dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
9
OneToOne/src/main/res/drawable/bg_search_unselect.xml
Normal file
9
OneToOne/src/main/res/drawable/bg_search_unselect.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="62dp" android:height="27dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#fff1f1f1" />
|
||||
<corners android:topLeftRadius="14dp" android:topRightRadius="14dp" android:bottomLeftRadius="14dp" android:bottomRightRadius="14dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
261
OneToOne/src/main/res/layout/activity_search.xml
Normal file
261
OneToOne/src/main/res/layout/activity_search.xml
Normal file
@@ -0,0 +1,261 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white">
|
||||
|
||||
<include
|
||||
android:id="@+id/include3"
|
||||
layout="@layout/view_search"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/activity_top"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/age_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="18dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/include3">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:text="年龄"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<com.shayu.onetoone.widget.flexboxradiogroup.FlexBoxRadioGroup
|
||||
android:id="@+id/age_radio_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:orientation="horizontal"
|
||||
app:alignContent="stretch"
|
||||
app:alignItems="stretch"
|
||||
app:flexWrap="wrap"
|
||||
app:justifyContent="flex_start"
|
||||
app:layout_wrapBefore="true"
|
||||
app:maxLine="3">
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:gravity="center"
|
||||
android:text="全部"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="18-25"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="26-30"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="31-35"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="36-40"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="40以上"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
</com.shayu.onetoone.widget.flexboxradiogroup.FlexBoxRadioGroup>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/sex_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/age_layout">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:text="性别"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<com.shayu.onetoone.widget.flexboxradiogroup.FlexBoxRadioGroup
|
||||
android:id="@+id/sex_radio_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:orientation="horizontal"
|
||||
app:alignContent="stretch"
|
||||
app:alignItems="stretch"
|
||||
app:flexWrap="wrap"
|
||||
app:justifyContent="flex_start"
|
||||
app:layout_wrapBefore="true"
|
||||
app:maxLine="3">
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:gravity="center"
|
||||
android:text="全部"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="男"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="女"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</com.shayu.onetoone.widget.flexboxradiogroup.FlexBoxRadioGroup>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/auth_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sex_layout">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:text="是否完成真人认证"
|
||||
android:textColor="#333333"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<com.shayu.onetoone.widget.flexboxradiogroup.FlexBoxRadioGroup
|
||||
android:id="@+id/auth_radio_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:orientation="horizontal"
|
||||
|
||||
app:alignContent="stretch"
|
||||
app:alignItems="stretch"
|
||||
app:flexWrap="wrap"
|
||||
app:justifyContent="flex_start"
|
||||
app:layout_wrapBefore="true"
|
||||
app:maxLine="3">
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:checked="true"
|
||||
android:gravity="center"
|
||||
android:text="已完成"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="62dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/bg_home_search_btn"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:text="未完成"
|
||||
android:textColor="@drawable/bg_home_search_text"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
</com.shayu.onetoone.widget.flexboxradiogroup.FlexBoxRadioGroup>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -56,8 +56,10 @@
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar_1"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_width="50dp"
|
||||
android:src="@drawable/m_chu_xia"
|
||||
android:layout_height="50dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="centerCrop"
|
||||
app:riv_oval="true" />
|
||||
|
||||
@@ -69,9 +71,8 @@
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginTop="10dp" />
|
||||
android:layout_marginTop="10dp"
|
||||
android:src="@mipmap/ic_home_rank_top_1" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="66dp"
|
||||
@@ -188,8 +189,9 @@
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar_2"
|
||||
android:layout_width="66dp"
|
||||
android:layout_height="66dp"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="centerCrop"
|
||||
app:riv_border_color="#B6B6B6"
|
||||
app:riv_border_width="2dp"
|
||||
@@ -321,8 +323,9 @@
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar_3"
|
||||
android:layout_width="66dp"
|
||||
android:layout_height="66dp"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:scaleType="centerCrop"
|
||||
app:riv_border_color="#B6B6B6"
|
||||
app:riv_border_width="2dp"
|
||||
|
||||
159
OneToOne/src/main/res/layout/item_home_rank.xml
Normal file
159
OneToOne/src/main/res/layout/item_home_rank.xml
Normal file
@@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="84dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/bg_home_recommend_item">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/rank"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:textColor="#53438C"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="4" />
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/constraintLayout"
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_height="60dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/rank"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/m_chu_xia"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:riv_oval="true" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sex"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:srcCompat="@mipmap/ic_message_tab_woman" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/follow"
|
||||
app:layout_constraintStart_toEndOf="@+id/constraintLayout"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="0dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="TextView"
|
||||
android:textColor="#333333"
|
||||
android:layout_gravity="center"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout3"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="3dp"
|
||||
android:background="@mipmap/bg_home_hot_live"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toTopOf="@+id/user_name"
|
||||
app:layout_constraintStart_toStartOf="@+id/user_name">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ic_level"
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginStart="5dp"
|
||||
app:srcCompat="@mipmap/ic_home_hot_woman" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/level"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:text="LV.21"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="10sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_weight="1"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_gravity="center"
|
||||
app:srcCompat="@mipmap/ic_drill" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/money"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="139999992"
|
||||
android:textColor="#999999"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/follow"
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="23dp"
|
||||
android:background="@drawable/bg_message_msg_bar_follow"
|
||||
android:text="关注"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginEnd="34dp"
|
||||
android:textSize="10dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -14,10 +14,10 @@
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:src="@mipmap/ic_msg_audio"
|
||||
app:layout_constraintBottom_toTopOf="@+id/linearLayout2"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/rc_ext_toggle_voice" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_btn"
|
||||
|
||||
73
OneToOne/src/main/res/layout/view_search.xml
Normal file
73
OneToOne/src/main/res/layout/view_search.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_back"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/linearLayout4"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@mipmap/icon_back" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_marginEnd="17dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginStart="22dp"
|
||||
android:paddingRight="10dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/btn_back"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_search_input_2"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:src="@mipmap/ic_search" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:hint="@string/search_hint"
|
||||
android:imeActionLabel="@string/search"
|
||||
android:imeOptions="actionSearch"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/textColor"
|
||||
android:textColorHint="@color/gray3"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/search"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="搜索"
|
||||
android:textColor="#A27AE5"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
BIN
OneToOne/src/main/res/mipmap-xxhdpi/ic_search.png
Normal file
BIN
OneToOne/src/main/res/mipmap-xxhdpi/ic_search.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
8
OneToOne/src/main/res/values/attrs.xml
Normal file
8
OneToOne/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="FlexBoxRadioGroup">
|
||||
<!-- The id of the child radio button that should be checked by default
|
||||
within this radio group. -->
|
||||
<attr name="uiCheckedButton" format="integer" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
@@ -24,4 +24,7 @@
|
||||
<style name="TransparentTheme" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
</style>
|
||||
<style name="HomeSearchRadio" parent="@android:style/Widget.CompoundButton.CheckBox">
|
||||
<item name="android:button">@drawable/bg_home_search_btn</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user