设置标签

This commit is contained in:
hch
2023-10-17 16:26:27 +08:00
parent d2639ceb6a
commit 1f0cdd86a4
16 changed files with 630 additions and 219 deletions

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape android:shape="rectangle">
<solid android:color="#F1F1F1" />
<corners android:radius="20dp" />
</shape>
</item>
<item android:state_selected="true">
<shape android:shape="rectangle">
<solid android:color="#F1F1F1" />
<corners android:radius="20dp" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="#F1F1F1" />
<corners android:radius="20dp" />
<stroke android:width="1dp" android:color="#F1F1F1" />
</shape>
</item>
</selector>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#A279E4" />
<corners android:radius="20dp" />
<stroke android:width="1dp" android:color="#A279E4" />
</shape>
</item>
</selector>

View File

@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
android:padding="15dp">
@@ -11,6 +12,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="15dp"
android:padding="10dp"
android:text="跳过"
android:textColor="@color/black2"
@@ -18,7 +20,8 @@
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
@@ -31,24 +34,44 @@
android:layout_marginTop="10dp"
android:text="我的标签"
android:textColor="@color/black2"
android:textSize="16sp" />
android:textSize="18sp" />
<TextView
android:id="@+id/notitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="暂无标签"
android:textColor="@color/gray1"
android:textSize="14sp" />
<com.xuexiang.xui.widget.flowlayout.FlowTagLayout
android:id="@+id/myLabel"
android:id="@+id/myFlowTag"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
app:ftl_check_mode="none" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/submit"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_gravity="center|bottom"
android:layout_marginBottom="20dp"
android:background="@drawable/bg_rect_round_tag_btn1"
android:padding="10dp"
android:text="完成"
android:textColor="@color/white"
android:textSize="18sp" />
</LinearLayout>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="我的标签"
android:textColor="@color/black2"
android:textSize="18sp" />
<com.xuexiang.xui.widget.flowlayout.FlowTagLayout
android:id="@+id/myFlowTag"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
app:ftl_check_mode="none" />
</LinearLayout>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_tag"
android:layout_width="wrap_content"
android:layout_height="32dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:background="@drawable/bg_rect_round_tag_btn"
android:paddingStart="15dp"
android:paddingTop="5dp"
android:paddingEnd="15dp"
android:paddingBottom="5dp"
android:text="活泼"
android:textColor="@color/black2" />
</LinearLayout>