完善
This commit is contained in:
@@ -6,12 +6,12 @@
|
||||
<translate
|
||||
android:fromYDelta="20%"
|
||||
android:toYDelta="0"
|
||||
android:duration="250" />
|
||||
android:duration="300" />
|
||||
|
||||
<!-- 透明度动画:从透明到不透明 -->
|
||||
<alpha
|
||||
android:fromAlpha="0"
|
||||
android:toAlpha="1"
|
||||
android:duration="250" />
|
||||
android:duration="300" />
|
||||
|
||||
</set>
|
||||
|
||||
5
app/src/main/res/drawable/bg_delete_btn.xml
Normal file
5
app/src/main/res/drawable/bg_delete_btn.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#E53935"/>
|
||||
<corners android:radius="18dp"/>
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/bg_dialog_round.xml
Normal file
4
app/src/main/res/drawable/bg_dialog_round.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@android:color/white"/>
|
||||
<corners android:radius="16dp"/>
|
||||
</shape>
|
||||
18
app/src/main/res/drawable/bg_sub_tab.xml
Normal file
18
app/src/main/res/drawable/bg_sub_tab.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 选中 -->
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="14dp" />
|
||||
<solid android:color="#1A000000" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<!-- 未选中 -->
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="14dp" />
|
||||
<solid android:color="@android:color/transparent" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
18
app/src/main/res/drawable/bg_top_tab.xml
Normal file
18
app/src/main/res/drawable/bg_top_tab.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 选中 -->
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="12dp" />
|
||||
<solid android:color="#1A2563EB" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<!-- 未选中 -->
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="12dp" />
|
||||
<solid android:color="#0F000000" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/button_cancel_background.xml
Normal file
5
app/src/main/res/drawable/button_cancel_background.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#F1F1F1" />
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/button_confirm_background.xml
Normal file
5
app/src/main/res/drawable/button_confirm_background.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#02BEAC" />
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/complete_bg.xml
Normal file
15
app/src/main/res/drawable/complete_bg.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<!-- 半透明白色(玻璃感核心) -->
|
||||
<solid android:color="#66FFFFFF" /> <!-- 40% 透明白 -->
|
||||
|
||||
<!-- 圆角(玻璃一般有圆角) -->
|
||||
<corners
|
||||
android:radius="4dp" />
|
||||
|
||||
<!-- 白色半透明描边,增加玻璃边缘感 -->
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#66FFFFFF" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/dialog_background.xml
Normal file
5
app/src/main/res/drawable/dialog_background.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/dialog_persona_detail_bg.xml
Normal file
5
app/src/main/res/drawable/dialog_persona_detail_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#FFFFFF"/>
|
||||
<corners android:radius="22dp"/>
|
||||
</shape>
|
||||
13
app/src/main/res/drawable/dot_bg.xml
Normal file
13
app/src/main/res/drawable/dot_bg.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="oval">
|
||||
<solid android:color="#222222"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="oval">
|
||||
<solid android:color="#33000000"/>
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/ic_added.xml
Normal file
5
app/src/main/res/drawable/ic_added.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#F1F1F1"/>
|
||||
<corners android:radius="50dp"/>
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/input_icon.png
Normal file
BIN
app/src/main/res/drawable/input_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 856 B |
5
app/src/main/res/drawable/input_message_bg.xml
Normal file
5
app/src/main/res/drawable/input_message_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#EDEDED"/>
|
||||
<corners android:radius="100dp"/>
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/keyboard_button_bg4.xml
Normal file
5
app/src/main/res/drawable/keyboard_button_bg4.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#8002BEAC"/>
|
||||
<corners android:radius="50dp"/>
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/no_search_result.png
Normal file
BIN
app/src/main/res/drawable/no_search_result.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
BIN
app/src/main/res/drawable/selected.png
Normal file
BIN
app/src/main/res/drawable/selected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
BIN
app/src/main/res/drawable/send_icon.png
Normal file
BIN
app/src/main/res/drawable/send_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
app/src/main/res/drawable/shut.png
Normal file
BIN
app/src/main/res/drawable/shut.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
5
app/src/main/res/drawable/tag_background.xml
Normal file
5
app/src/main/res/drawable/tag_background.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="50dp" />
|
||||
<solid android:color="#000000" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/tv_background_bg.xml
Normal file
5
app/src/main/res/drawable/tv_background_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#F8F8F8"/>
|
||||
<corners android:radius="10dp"/>
|
||||
</shape>
|
||||
@@ -33,6 +33,17 @@
|
||||
android:rotation="180"
|
||||
android:scaleType="fitCenter" />
|
||||
</FrameLayout>
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="49dp"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:text="Key of love"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
@@ -52,6 +63,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
<!-- 头像 -->
|
||||
@@ -127,32 +139,61 @@
|
||||
android:id="@+id/bottom_panel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/input_message_bg"
|
||||
android:padding="5dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp"
|
||||
android:layout_gravity="bottom">
|
||||
<EditText
|
||||
android:id="@+id/input_message"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="52dp"
|
||||
android:background="@drawable/input_box_bg"
|
||||
android:padding="15dp"
|
||||
android:hint="Please enter your content"
|
||||
android:textColorHint="#CBCBCB"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#CBCBCB"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:cursorVisible="true"
|
||||
android:imeOptions="actionSend"
|
||||
android:inputType="text"/>
|
||||
<Button
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#00000000"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:cursorVisible="true"
|
||||
android:imeOptions="actionSend"
|
||||
android:textColor="#CBCBCB"
|
||||
android:textSize="12sp"
|
||||
android:inputType="text"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/hintLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="19dp"
|
||||
android:src="@drawable/input_icon"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hint_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:text="Please enter your content"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#CBCBCB"/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
<ImageView
|
||||
android:id="@+id/btn_send"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="52dp"
|
||||
android:text="Send"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp"
|
||||
android:layout_width="34dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:src="@drawable/send_icon"
|
||||
android:imeOptions="actionSend"
|
||||
android:inputType="text"/>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -5,10 +5,12 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/background"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="52dp"
|
||||
android:id="@+id/keyboard_container"
|
||||
android:layout_marginTop="3dp"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="8dp">
|
||||
<ImageView
|
||||
@@ -30,31 +32,33 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:id="@+id/keyboard_row_1"
|
||||
android:paddingStart="4dp"
|
||||
android:paddingEnd="4dp"
|
||||
android:orientation="horizontal">
|
||||
<!-- 粘贴框和人设 -->
|
||||
android:orientation="vertical">
|
||||
<!-- 粘贴框-->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
android:orientation="horizontal">
|
||||
<!-- 粘贴框 -->
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/completion_scroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_weight="1"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:background="@drawable/keyboard_button_bg3"
|
||||
android:fillViewport="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/completion_container"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -76,9 +80,35 @@
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
|
||||
<!-- 人设 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/keyboard_button_Paste"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg1">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Paste"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!-- 人设和操作 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ai_persona"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_height="131dp"
|
||||
android:scrollbars="none">
|
||||
@@ -89,9 +119,9 @@
|
||||
app:flexDirection="row"
|
||||
app:flexWrap="wrap"
|
||||
app:justifyContent="space_between">
|
||||
|
||||
<!-- 卡片 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/card"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
@@ -115,35 +145,16 @@
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp"/>
|
||||
</LinearLayout>
|
||||
<!-- ```````````````` -->
|
||||
|
||||
</com.google.android.flexbox.FlexboxLayout>
|
||||
</ScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<!-- 操作 -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/keyboard_button_1"
|
||||
android:layout_marginStart="4dp"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:id="@+id/keyboard_button_Paste"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="41dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg1">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Paste"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/keyboard_button_Delete"
|
||||
android:layout_width="60dp"
|
||||
@@ -190,5 +201,41 @@
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- `````````````````````````````````````````````````````````````````````````````````````` -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ai_output"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="131dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="@drawable/keyboard_button_bg3"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/scroll_messages"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/container_messages"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"/>
|
||||
</ScrollView>
|
||||
<!-- 切换按钮 -->
|
||||
<TextView
|
||||
android:id="@+id/Return_keyboard"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="-55dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:background="@drawable/keyboard_button_bg4"
|
||||
android:gravity="center"
|
||||
android:text="Return"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="10sp" />
|
||||
|
||||
</LinearLayout>
|
||||
<!-- `````````````````````````````````````````````````````````````````````````````````````` -->
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<androidx.core.widget.NestedScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/scrollContent"
|
||||
android:id="@+id/rvList1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true">
|
||||
@@ -22,6 +22,7 @@
|
||||
android:orientation="horizontal">
|
||||
<!-- 第2名 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/container_second"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
@@ -29,6 +30,7 @@
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/avatar_second"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:elevation="4dp"
|
||||
@@ -38,7 +40,7 @@
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/backgroundImage"
|
||||
android:id="@+id/bg_second"
|
||||
android:layout_width="96dp"
|
||||
android:layout_height="148dp"
|
||||
android:layout_marginTop="-33dp"
|
||||
@@ -48,9 +50,25 @@
|
||||
android:src="@drawable/second_place" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name_second"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="70dp"
|
||||
android:layout_marginTop="-60dp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:elevation="2dp"
|
||||
android:text="Loading..."
|
||||
android:textSize="10sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_add_second"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="28dp"
|
||||
android:background="@drawable/round_bg_two"
|
||||
android:layout_marginTop="50dp"
|
||||
android:gravity="center"
|
||||
android:text="+"
|
||||
android:textColor="#6EA0EB"
|
||||
@@ -60,12 +78,14 @@
|
||||
|
||||
<!-- 第一名 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/container_first"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/avatar_first"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:elevation="4dp"
|
||||
@@ -74,7 +94,7 @@
|
||||
app:civ_border_color="#DFF346" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/backgroundImage"
|
||||
android:id="@+id/bg_first"
|
||||
android:layout_marginTop="-33dp"
|
||||
android:layout_width="96dp"
|
||||
android:layout_height="148dp"
|
||||
@@ -82,11 +102,27 @@
|
||||
android:src="@drawable/first_place"
|
||||
android:scaleType="fitXY"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name_first"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="70dp"
|
||||
android:layout_marginTop="-60dp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:elevation="2dp"
|
||||
android:text="Loading..."
|
||||
android:textSize="10sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_add_first"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="28dp"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="50dp"
|
||||
android:text="+"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold"
|
||||
@@ -96,6 +132,7 @@
|
||||
|
||||
<!-- 第三名 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/container_third"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
@@ -103,6 +140,7 @@
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/avatar_third"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:elevation="4dp"
|
||||
@@ -111,7 +149,7 @@
|
||||
app:civ_border_color="#DFF346" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/backgroundImage"
|
||||
android:id="@+id/bg_third"
|
||||
android:layout_marginTop="-33dp"
|
||||
android:layout_width="96dp"
|
||||
android:layout_height="148dp"
|
||||
@@ -120,10 +158,25 @@
|
||||
android:scaleType="fitXY"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name_third"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="70dp"
|
||||
android:layout_marginTop="-60dp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:elevation="2dp"
|
||||
android:text="Loading..."
|
||||
android:textSize="10sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_add_third"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="28dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:gravity="center"
|
||||
android:text="+"
|
||||
android:textSize="20dp"
|
||||
@@ -135,75 +188,14 @@
|
||||
|
||||
<!-- 排名靠后 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/container_others"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="260dp"
|
||||
android:minHeight="1000dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
<!-- 内容卡片 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_weight="1"
|
||||
android:text="4"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#1B1F1A"
|
||||
/>
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:elevation="4dp"
|
||||
android:src="@drawable/default_avatar"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="NameNameNameNameNameNameNameNameNameNameName"
|
||||
android:textStyle="bold"
|
||||
android:textSize="16sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:text="nullnullnullnullnullnullnullnullnullnullnullvnullnullnullnullnull"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#9A9A9A" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="38dp"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:text="+"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#02BEAC"
|
||||
android:background="@drawable/round_bg_others" />
|
||||
</LinearLayout>
|
||||
android:orientation="vertical">
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1,99 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/scrollContent"
|
||||
android:id="@+id/rvList2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:minHeight="1000dp"
|
||||
android:padding="14dp"
|
||||
android:fillViewport="true">
|
||||
|
||||
<LinearLayout
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="1000dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="14dp">
|
||||
<!-- 内容卡片 -->
|
||||
<LinearLayout
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="240dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:elevation="7dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
app:civ_border_width="2dp"
|
||||
app:civ_border_color="#DFF346" />
|
||||
android:paddingBottom="240dp"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginTop="-40dp"
|
||||
android:background="#ffffff"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardElevation="6dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
<ProgressBar
|
||||
android:id="@+id/loadingView"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center"
|
||||
android:padding="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="name"
|
||||
android:singleLine="true"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textSize="16sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Be neither too closenor too distant"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="5dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="2"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#9A9A9A" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Be neither too closenor too distant"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="5dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="2"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="32dp"
|
||||
android:text="+"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="5dp"
|
||||
android:background="@drawable/list_two_bg"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</FrameLayout>
|
||||
|
||||
54
app/src/main/res/layout/dialog_logout.xml
Normal file
54
app/src/main/res/layout/dialog_logout.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:padding="24dp"
|
||||
android:background="@drawable/bg_dialog_round"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- 标题 -->
|
||||
<TextView
|
||||
android:text="Confirm logging out?"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#222222"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<!-- 描述 -->
|
||||
<TextView
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="You will need to log in again after logging out"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#666666"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<!-- 按钮区 -->
|
||||
<LinearLayout
|
||||
android:layout_marginTop="24dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="end"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_cancel"
|
||||
android:text="Cancel"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#666666"
|
||||
android:padding="12dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_logout"
|
||||
android:text="Log out"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#F44336"
|
||||
android:padding="12dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
90
app/src/main/res/layout/dialog_persona_detail.xml
Normal file
90
app/src/main/res/layout/dialog_persona_detail.xml
Normal file
@@ -0,0 +1,90 @@
|
||||
<?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:id="@+id/card"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/ivAvatar"
|
||||
android:layout_width="112dp"
|
||||
android:layout_height="112dp"
|
||||
android:elevation="4dp"
|
||||
android:layout_gravity="center_horizontal"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="301dp"
|
||||
android:layout_height="358dp"
|
||||
android:background="@drawable/dialog_persona_detail_bg"
|
||||
android:layout_marginTop="-56dp"
|
||||
android:elevation="1dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="68dp"
|
||||
android:gravity="center"
|
||||
android:text="Loading..."
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/download"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center"
|
||||
android:text="Loading..."
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="13sp"/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="243dp"
|
||||
android:layout_height="113dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/tv_background_bg"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp">
|
||||
<TextView
|
||||
android:id="@+id/tvBackground"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="Loading..."
|
||||
android:textSize="14sp"
|
||||
android:lineSpacingExtra="4dp"
|
||||
android:hyphenationFrequency="normal" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btnAdd"
|
||||
android:layout_width="245dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/keyboard_ettings"
|
||||
android:textColor="#ffffff"
|
||||
android:text="Loading..." />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnClose"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="28dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/shut" />
|
||||
|
||||
</LinearLayout>
|
||||
80
app/src/main/res/layout/dialog_purchase_confirmation.xml
Normal file
80
app/src/main/res/layout/dialog_purchase_confirmation.xml
Normal file
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="8dp"
|
||||
android:background="@android:color/transparent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/dialog_background"
|
||||
android:padding="24dp">
|
||||
|
||||
<!-- 标题 -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Purchase Confirmation"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"
|
||||
android:gravity="center"
|
||||
android:layout_marginBottom="16dp" />
|
||||
|
||||
<!-- 消息内容 -->
|
||||
<TextView
|
||||
android:id="@+id/tv_message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Have you confirmed your purchase of this theme"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#666666"
|
||||
android:gravity="center"
|
||||
android:lineSpacingExtra="4dp"
|
||||
android:layout_marginBottom="24dp" />
|
||||
|
||||
<!-- 按钮容器 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center">
|
||||
|
||||
<!-- 取消按钮 -->
|
||||
<TextView
|
||||
android:id="@+id/btn_cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:text="Cancel"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#999999"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/button_cancel_background"
|
||||
android:textStyle="normal" />
|
||||
|
||||
<!-- 确认按钮 -->
|
||||
<TextView
|
||||
android:id="@+id/btn_confirm"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="8dp"
|
||||
android:text="Confirm"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/button_confirm_background"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
<!-- 输入框 -->
|
||||
<EditText
|
||||
android:id="@+id/et_username"
|
||||
android:id="@+id/et_email"
|
||||
android:layout_width="315dp"
|
||||
android:layout_height="52dp"
|
||||
android:layout_marginTop="20dp"
|
||||
@@ -108,7 +108,7 @@
|
||||
android:hint="Please enter your email address"
|
||||
android:textColorHint="#CBCBCB"
|
||||
android:textSize="14sp"
|
||||
android:textColor="#CBCBCB" />
|
||||
android:textColor="#000000" />
|
||||
<!-- 密码输入框 -->
|
||||
<RelativeLayout
|
||||
android:layout_width="315dp"
|
||||
|
||||
@@ -94,19 +94,38 @@
|
||||
android:elevation="5dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/subscript"/>
|
||||
|
||||
<TextView
|
||||
<!-- 昵称 -->
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="Username"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textStyle="bold"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20sp" />
|
||||
android:layout_marginStart="10dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/nickname"
|
||||
android:text="Username"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textStyle="bold"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/time"
|
||||
android:text="Time"
|
||||
android:textColor="#A4A4A4"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:maxLines="1"
|
||||
android:layout_weight="1"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 充值 -->
|
||||
@@ -385,6 +404,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/logout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="63dp"
|
||||
android:layout_marginTop="20dp"
|
||||
|
||||
@@ -136,71 +136,11 @@
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp" />
|
||||
<!-- 推荐皮肤列表 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_recommend_list"
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_recommend_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="10dp">
|
||||
<!-- 卡片 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/card_view"
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F8F8F8"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="127dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/bg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="Dopamine"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:padding="4dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/gold_coin_background_required"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="20"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!-- ········· -->
|
||||
</LinearLayout>
|
||||
android:paddingTop="10dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
@@ -74,70 +74,33 @@
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 搜索结果列表 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_recommend_list"
|
||||
android:layout_width="match_parent"
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_search_results"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="10dp" />
|
||||
<!-- 没有搜索结果时显示的提示 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_no_search_result"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:paddingTop="10dp"
|
||||
android:visibility="gone"
|
||||
android:orientation="vertical">
|
||||
<ImageView
|
||||
android:layout_width="175dp"
|
||||
android:layout_height="175dp"
|
||||
android:src="@drawable/no_search_result" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="10dp">
|
||||
<!-- 卡片 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F8F8F8"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="No data available for the time being"
|
||||
android:textColor="#999999"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="127dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/bg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="Dopamine"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:padding="4dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/gold_coin_background_required"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="20"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!-- ········· -->
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -1,213 +1,228 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
<com.example.myapplication.widget.NoHorizontalInterceptSwipeRefreshLayout
|
||||
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:id="@+id/rootCoordinator"
|
||||
android:id="@+id/swipeRefreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.home.HomeFragment">
|
||||
android:layout_marginBottom="40dp">
|
||||
|
||||
<!-- 背景-->
|
||||
<ImageView
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/bg"
|
||||
android:scaleType="fitXY"
|
||||
android:adjustViewBounds="true" />
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!-- 头部 + 标签行,放进 AppBarLayout 里 -->
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/appBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/transparent">
|
||||
<!-- 背景-->
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/bg"
|
||||
android:scaleType="fitXY"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
<!-- 这一块会跟着滚动,滑出屏幕 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/headerContainer"
|
||||
<!-- 头部 + 标签行,放进 AppBarLayout 里 -->
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/appBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
||||
android:background="@android:color/transparent">
|
||||
|
||||
<!-- 搜索、皮肤栏 -->
|
||||
<!-- 这一块会跟着滚动,滑出屏幕 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/headerContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="end|bottom"
|
||||
android:orientation="horizontal">
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/searchButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:src="@drawable/search" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/skinButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:src="@drawable/skin" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 小星星 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="110dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:elevation="1dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginTop="62dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="Points Mall"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textStyle="bold"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="62dp"
|
||||
android:src="@drawable/blue_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginStart="100dp"
|
||||
android:src="@drawable/blue_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="54dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:src="@drawable/blue_star" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Points 卡片 -->
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="238dp"
|
||||
android:layout_marginTop="-110dp"
|
||||
android:elevation="10dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 点数背景 -->
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/points" />
|
||||
|
||||
<!-- 内容 -->
|
||||
<!-- 搜索、皮肤栏 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="110dp"
|
||||
android:orientation="vertical">
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="end|bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/searchButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:src="@drawable/search" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/skinButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:src="@drawable/skin" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 小星星 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="110dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:elevation="1dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginTop="62dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="My points"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="Points Mall"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:padding="20dp" />
|
||||
android:textStyle="bold"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="62dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginTop="62dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="54dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:src="@drawable/blue_star" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Points 卡片 -->
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="238dp"
|
||||
android:layout_marginTop="-110dp"
|
||||
android:elevation="10dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 点数背景 -->
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/points" />
|
||||
|
||||
<!-- 内容 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_marginEnd="11dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:src="@drawable/gold_coin" />
|
||||
android:layout_marginTop="110dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="88.00"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="40sp" />
|
||||
android:text="My points"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:padding="20dp" />
|
||||
|
||||
<!-- 按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rechargeButton"
|
||||
android:layout_width="114dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_marginStart="30dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/gold_coin_button"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:id="@+id/balance"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:text="0.00"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="40sp" />
|
||||
|
||||
<!-- 按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rechargeButton"
|
||||
android:layout_width="114dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
android:text="Recharge" />
|
||||
android:background="@drawable/gold_coin_button"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
android:text="Recharge" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 标签行:仍然在 points 卡片下面,并设置成吸顶 -->
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/tagScroll"
|
||||
<!-- 标签行:仍然在 points 卡片下面,并设置成吸顶 -->
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/tagScroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_marginBottom="18dp"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
android:overScrollMode="never">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tagContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical" />
|
||||
</HorizontalScrollView>
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<!-- 内容页,放进 ViewPager2 里 -->
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_marginBottom="18dp"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
android:overScrollMode="never">
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="40dp"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tagContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical" />
|
||||
</HorizontalScrollView>
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<!-- 内容页,放进 ViewPager2 里 -->
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</com.example.myapplication.widget.NoHorizontalInterceptSwipeRefreshLayout>
|
||||
|
||||
7
app/src/main/res/layout/fragment_shop_style_page.xml
Normal file
7
app/src/main/res/layout/fragment_shop_style_page.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp"
|
||||
android:clipToPadding="false"/>
|
||||
15
app/src/main/res/layout/item_ai_message.xml
Normal file
15
app/src/main/res/layout/item_ai_message.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="4dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:background="#f5f5f5"
|
||||
android:padding="10dp" />
|
||||
</LinearLayout>
|
||||
7
app/src/main/res/layout/item_dot.xml
Normal file
7
app/src/main/res/layout/item_dot.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="6dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:background="@drawable/dot_bg" />
|
||||
11
app/src/main/res/layout/item_emoji.xml
Normal file
11
app/src/main/res/layout/item_emoji.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:gravity="center"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingRight="4dp"
|
||||
android:textSize="20sp"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false" />
|
||||
12
app/src/main/res/layout/item_emoji_tab.xml
Normal file
12
app/src/main/res/layout/item_emoji_tab.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:gravity="center"
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/bg_sub_tab"
|
||||
android:layout_marginRight="6dp"
|
||||
android:includeFontPadding="false"/>
|
||||
|
||||
11
app/src/main/res/layout/item_kaomoji.xml
Normal file
11
app/src/main/res/layout/item_kaomoji.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingRight="2dp"
|
||||
android:textSize="10sp"
|
||||
android:maxLines="4"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false" />
|
||||
58
app/src/main/res/layout/item_myskin_theme.xml
Normal file
58
app/src/main/res/layout/item_myskin_theme.xml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivPreview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="127dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/default_avatar" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:text="Dopamine"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 选中遮罩(编辑模式才显示) -->
|
||||
<View
|
||||
android:id="@+id/overlay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#66000000"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<!-- 勾(编辑模式才显示) -->
|
||||
<ImageView
|
||||
android:id="@+id/ivCheck"
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_gravity="top|end"
|
||||
android:layout_margin="10dp"
|
||||
android:src="@drawable/selected"
|
||||
android:visibility="gone"/>
|
||||
|
||||
</FrameLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -3,7 +3,8 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="end"
|
||||
android:orientation="vertical">
|
||||
<!-- 头像 -->
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
<!-- 头像 -->
|
||||
|
||||
89
app/src/main/res/layout/item_persona.xml
Normal file
89
app/src/main/res/layout/item_persona.xml
Normal file
@@ -0,0 +1,89 @@
|
||||
<!-- 内容卡片 -->
|
||||
<!-- <?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="150dp"
|
||||
android:layout_height="240dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/ivAvatar"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:elevation="7dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
app:civ_border_width="2dp"
|
||||
app:civ_border_color="#DFF346" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginTop="-40dp"
|
||||
android:background="#ffffff"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardElevation="6dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center"
|
||||
android:padding="12dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvName"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="name"
|
||||
android:singleLine="true"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textSize="16sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/characterBackground"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Be neither too closenor too distant"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="5dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="2"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#9A9A9A" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/download"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Be neither too closenor too distant"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginTop="5dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="2"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/operation"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="32dp"
|
||||
android:text="+"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="5dp"
|
||||
android:background="@drawable/list_two_bg"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
72
app/src/main/res/layout/item_rank_other.xml
Normal file
72
app/src/main/res/layout/item_rank_other.xml
Normal file
@@ -0,0 +1,72 @@
|
||||
<!-- 内容卡片 -->
|
||||
<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="90dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/container_others"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/tv_rank"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Loading..."
|
||||
android:textSize="14sp"
|
||||
android:textColor="#1B1F1A"
|
||||
/>
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/iv_avatar"
|
||||
android:layout_width="67dp"
|
||||
android:layout_height="67dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:elevation="4dp"
|
||||
android:src="@drawable/default_avatar"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="Loading..."
|
||||
android:textStyle="bold"
|
||||
android:textSize="16sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:text="Loading..."
|
||||
android:textSize="12sp"
|
||||
android:textColor="#9A9A9A" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_add"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="38dp"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:text="+"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#02BEAC"
|
||||
android:background="@drawable/round_bg_others" />
|
||||
</LinearLayout>
|
||||
<!-- 内容卡片结束 -->
|
||||
@@ -1,25 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
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:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="600dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
android:background="#ffffff">
|
||||
|
||||
<!-- 卡片内容 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F8F8F8"
|
||||
android:id="@+id/theme_card"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
<LinearLayout
|
||||
@@ -28,12 +14,14 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/theme_image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="127dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/bg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/theme_name"
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
@@ -61,17 +49,15 @@
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:id="@+id/theme_price"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-2dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="20"
|
||||
android:text="0.00"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -8,26 +8,54 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/control_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/key_ai"
|
||||
android:layout_width="34dp"
|
||||
android:layout_height="34dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/collapse_button"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center">
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/Key_collapse"
|
||||
android:layout_width="19dp"
|
||||
android:layout_height="10dp"
|
||||
/>
|
||||
android:id="@+id/key_revoke"
|
||||
android:layout_width="83dp"
|
||||
android:layout_height="25dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:clickable="true"/>
|
||||
|
||||
|
||||
<!-- 收起键盘 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/collapse_button"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:id="@+id/Key_collapse"
|
||||
android:layout_width="19dp"
|
||||
android:layout_height="10dp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -35,8 +63,10 @@
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:scrollbars="none"
|
||||
android:overScrollMode="never"
|
||||
android:background="@drawable/complete_bg"
|
||||
android:id="@+id/completion_scroll">
|
||||
|
||||
<LinearLayout
|
||||
@@ -56,7 +86,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_1"
|
||||
@@ -67,7 +97,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_2"
|
||||
@@ -78,7 +108,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_3"
|
||||
@@ -89,7 +119,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_4"
|
||||
@@ -100,7 +130,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_5"
|
||||
@@ -111,7 +141,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_6"
|
||||
@@ -122,7 +152,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_7"
|
||||
@@ -133,7 +163,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_8"
|
||||
@@ -144,7 +174,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_9"
|
||||
@@ -155,7 +185,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_10"
|
||||
@@ -166,7 +196,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_11"
|
||||
@@ -177,7 +207,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_12"
|
||||
@@ -188,7 +218,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_13"
|
||||
@@ -199,7 +229,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_14"
|
||||
@@ -210,7 +240,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_15"
|
||||
@@ -221,7 +251,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_16"
|
||||
@@ -232,7 +262,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_17"
|
||||
@@ -243,7 +273,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_18"
|
||||
@@ -254,7 +284,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_19"
|
||||
@@ -265,7 +295,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/suggestion_20"
|
||||
@@ -276,7 +306,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#3C3C3C"/>
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
@@ -286,6 +316,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
@@ -573,7 +604,7 @@
|
||||
android:gravity="center"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_ai"
|
||||
android:id="@+id/key_emoji"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:textSize="12sp"
|
||||
|
||||
@@ -7,11 +7,16 @@
|
||||
android:layout_height="match_parent"
|
||||
android:background="#F6F7FB"
|
||||
tools:context=".ui.keyboard.KeyboardDetailFragment">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipeRefreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
android:layout_height="match_parent">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never"
|
||||
android:layout_marginBottom="80dp">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -70,7 +75,7 @@
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"
|
||||
android:text="Dopamine" />
|
||||
android:text="Loading..." />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_download_count"
|
||||
@@ -82,10 +87,16 @@
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/tv_download_count"
|
||||
android:textColor="#02BEAC"
|
||||
android:text="Download: 1 million" />
|
||||
android:text="Loading..." />
|
||||
</LinearLayout>
|
||||
<!-- 描述标签 -->
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_tags_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="0dp" />
|
||||
|
||||
<!-- 推荐皮肤 -->
|
||||
<LinearLayout
|
||||
@@ -101,112 +112,91 @@
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp" />
|
||||
<!-- 推荐皮肤列表 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_recommend_list"
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_recommend_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="10dp">
|
||||
<!-- 卡片 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/card_view"
|
||||
android:layout_width="170dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F8F8F8"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="127dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/bg" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="Dopamine"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:padding="4dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/gold_coin_background_required"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="20"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<!-- ········· -->
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- 购买按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rechargeButton"
|
||||
android:layout_marginTop="22dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/my_keyboard_delete"
|
||||
android:elevation="4dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:text="Download" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:text="20" />
|
||||
|
||||
android:paddingTop="10dp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
<!-- 固定在底部的购买按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rechargeButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/my_keyboard_delete"
|
||||
android:elevation="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:padding="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:text="Download" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_price"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:text="00" />
|
||||
</LinearLayout>
|
||||
<!-- 启用主题切换按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/enabledButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/my_keyboard_delete"
|
||||
android:elevation="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:padding="12dp">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:visibility="gone"
|
||||
android:indeterminateTint="#FFFFFF" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/enabledButtonText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#FFFFFF"
|
||||
android:text="Enabled" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
90
app/src/main/res/layout/keyboard_emoji.xml
Normal file
90
app/src/main/res/layout/keyboard_emoji.xml
Normal file
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="3dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_abc"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/bg_top_tab"
|
||||
android:text="ABC"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginRight="6dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tab_emoji"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="Emoji"
|
||||
android:textSize="15sp"
|
||||
android:background="@drawable/bg_top_tab"
|
||||
android:layout_marginRight="6dp"
|
||||
android:layout_marginLeft="6dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tab_kaomoji"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="Kaomoji"
|
||||
android:textSize="15sp"
|
||||
android:background="@drawable/bg_top_tab"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_marginRight="6dp"/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_del"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_top_tab"
|
||||
android:text="⌫"
|
||||
android:textSize="18sp"
|
||||
android:layout_marginLeft="6dp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 分页内容 -->
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="176dp" />
|
||||
|
||||
<!-- PageIndicator 点点 -->
|
||||
<!-- <LinearLayout
|
||||
android:id="@+id/page_indicator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="22dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal" /> -->
|
||||
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/subcategory_scroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/subcategory_bar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" />
|
||||
</HorizontalScrollView>
|
||||
</LinearLayout>
|
||||
@@ -1,108 +1,115 @@
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
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:id="@+id/rootCoordinator"
|
||||
android:id="@+id/swipeRefreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#F6F7FB"
|
||||
tools:context=".ui.shop.myskin.MySkin">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
android:id="@+id/rootCoordinator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
<LinearLayout
|
||||
android:background="#F6F7FB"
|
||||
tools:context=".ui.shop.myskin.MySkin">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
<!-- 标题和返回 -->
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp"
|
||||
android:gravity="center_vertical">
|
||||
<!-- 返回按钮 -->
|
||||
<FrameLayout
|
||||
android:id="@+id/iv_close"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="46dp">
|
||||
<ImageView
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/more_icons"
|
||||
android:rotation="180"
|
||||
android:scaleType="fitCenter" />
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:text="MySkin"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:text="Editor"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 内容 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
<!-- 卡片内容 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="170dp"
|
||||
<!-- 标题和返回 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F8F8F8"
|
||||
app:cardCornerRadius="15dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp"
|
||||
android:gravity="center_vertical">
|
||||
<!-- 返回按钮 -->
|
||||
<FrameLayout
|
||||
android:id="@+id/iv_close"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="46dp">
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="127dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/default_avatar" />
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/more_icons"
|
||||
android:rotation="180"
|
||||
android:scaleType="fitCenter" />
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginBottom="14dp"
|
||||
android:text="Dopamine"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:text="MySkin"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginTop="-150dp"
|
||||
android:layout_marginStart="10dp"/>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
<TextView
|
||||
android:id="@+id/tvEditor"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:text="Editor"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 内容 -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvThemes"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:nestedScrollingEnabled="false"
|
||||
tools:listitem="@layout/item_myskin_theme"/>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<!-- 底部编辑栏 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/bottomEditBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="#FFFFFF"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:visibility="gone"
|
||||
android:elevation="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSelectedCount"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="0 themes selected"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btnDelete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="36dp"
|
||||
android:gravity="center"
|
||||
android:paddingStart="14dp"
|
||||
android:paddingEnd="14dp"
|
||||
android:text="Delete"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:background="@drawable/bg_delete_btn"/>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
@@ -10,29 +10,59 @@
|
||||
android:id="@+id/control_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingEnd="10dp"
|
||||
android:layout_weight="1">
|
||||
<TextView
|
||||
android:id="@+id/key_ai"
|
||||
android:layout_width="34dp"
|
||||
android:layout_height="34dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/collapse_button"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center">
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/Key_collapse"
|
||||
android:layout_width="19dp"
|
||||
android:layout_height="10dp"
|
||||
/>
|
||||
android:id="@+id/key_revoke"
|
||||
android:layout_width="83dp"
|
||||
android:layout_height="25dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:clickable="true"/>
|
||||
|
||||
|
||||
<!-- 收起键盘 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/collapse_button"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:id="@+id/Key_collapse"
|
||||
android:layout_width="19dp"
|
||||
android:layout_height="10dp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<!-- 第一行数字键 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
@@ -291,7 +321,7 @@
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_ai"
|
||||
android:id="@+id/key_emoji"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:textSize="12sp"
|
||||
|
||||
6
app/src/main/res/layout/pager_page_grid.xml
Normal file
6
app/src/main/res/layout/pager_page_grid.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/page_grid"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never" />
|
||||
@@ -9,25 +9,47 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/control_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:layout_weight="1">
|
||||
<!-- ai -->
|
||||
<TextView android:id="@+id/key_ai" android:layout_width="34dp" android:layout_height="34dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/collapse_button"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center">
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/Key_collapse"
|
||||
android:layout_width="19dp"
|
||||
android:layout_height="10dp"
|
||||
/>
|
||||
android:id="@+id/key_revoke"
|
||||
android:layout_width="83dp"
|
||||
android:layout_height="25dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:clickable="true"/>
|
||||
|
||||
<!-- 收起键盘 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/collapse_button"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:id="@+id/Key_collapse"
|
||||
android:layout_width="19dp"
|
||||
android:layout_height="10dp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -35,6 +57,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
@@ -84,7 +107,7 @@
|
||||
<TextView android:id="@+id/key_question" android:layout_width="47dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_exclam" android:layout_width="47dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_quote" android:layout_width="47dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_backspace" android:layout_width="42dp" android:layout_height="40dp" android:layout_marginStart="12dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_del" android:layout_width="42dp" android:layout_height="40dp" android:layout_marginStart="12dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第四行:123 | abc | [Space ×3] | send -->
|
||||
@@ -95,7 +118,7 @@
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
<TextView android:id="@+id/key_abc" android:layout_width="42dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_ai" android:layout_width="42dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_emoji" android:layout_width="42dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_space" android:layout_width="181dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_send" android:layout_width="88dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
14
app/src/main/res/layout/view_fullscreen_loading.xml
Normal file
14
app/src/main/res/layout/view_fullscreen_loading.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#66000000"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_gravity="center"
|
||||
android:indeterminate="true" />
|
||||
</FrameLayout>
|
||||
@@ -11,6 +11,15 @@
|
||||
android:name="com.example.myapplication.ui.home.HomeFragment"
|
||||
android:label="Home"
|
||||
tools:layout="@layout/fragment_home" />
|
||||
|
||||
<action
|
||||
android:id="@+id/action_global_homeFragment"
|
||||
app:destination="@id/homeFragment"
|
||||
app:enterAnim="@anim/fade_in"
|
||||
app:exitAnim="@anim/fade_out"
|
||||
app:popEnterAnim="@anim/fade_in_fast"
|
||||
app:popExitAnim="@anim/fade_out_fast"/>
|
||||
|
||||
|
||||
<!-- 商城 -->
|
||||
<fragment
|
||||
@@ -132,7 +141,12 @@
|
||||
android:id="@+id/keyboardDetailFragment"
|
||||
android:name="com.example.myapplication.ui.keyboard.KeyboardDetailFragment"
|
||||
android:label="Keyboard Detail"
|
||||
tools:layout="@layout/keyboard_detail" />
|
||||
tools:layout="@layout/keyboard_detail">
|
||||
<argument
|
||||
android:name="themeId"
|
||||
android:defaultValue="0"
|
||||
app:argType="integer" />
|
||||
</fragment>
|
||||
|
||||
<!-- 键盘详情全局跳转 -->
|
||||
<action
|
||||
@@ -186,6 +200,15 @@
|
||||
android:label="Login"
|
||||
tools:layout="@layout/fragment_login" />
|
||||
|
||||
<!-- 全局登录跳转 -->
|
||||
<action
|
||||
android:id="@+id/action_global_loginFragment"
|
||||
app:destination="@id/loginFragment"
|
||||
app:enterAnim="@anim/fade_in"
|
||||
app:exitAnim="@anim/fade_out"
|
||||
app:popEnterAnim="@anim/fade_in_fast"
|
||||
app:popExitAnim="@anim/fade_out_fast"/>
|
||||
|
||||
<action
|
||||
android:id="@+id/action_mineFragment_to_loginFragment"
|
||||
app:destination="@id/loginFragment"
|
||||
|
||||
@@ -22,5 +22,11 @@
|
||||
<item name="android:background">@drawable/code_box_bg</item>
|
||||
<item name="android:textColor">#000000</item>
|
||||
</style>
|
||||
|
||||
<style name="PersonaDetailDialog" parent="Theme.MaterialComponents.Light.Dialog">
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:windowBackground">#00000000</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
|
||||
12
app/src/main/res/xml/network_security_config.xml
Normal file
12
app/src/main/res/xml/network_security_config.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config cleartextTrafficPermitted="false">
|
||||
<trust-anchors>
|
||||
<certificates src="system" />
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<domain includeSubdomains="true">192.168.2.21</domain>
|
||||
</domain-config>
|
||||
</network-security-config>
|
||||
Reference in New Issue
Block a user