优化1
5
app/src/main/res/drawable/ai_caard_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="#f5f5f5"/>
|
||||
<corners android:radius="5dp"/>
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/associate_close.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
9
app/src/main/res/drawable/complete_close_bg.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#FFFFFF" /> <!-- 40% 透明白 -->
|
||||
<corners
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="4dp"
|
||||
android:bottomLeftRadius="0dp"
|
||||
android:bottomRightRadius="4dp" />
|
||||
</shape>
|
||||
19
app/src/main/res/drawable/consumption_details_bg.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- 透明背景:保证不会出现“有背景颜色” -->
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<!-- 底部边框:固定在底部,只画一条线 -->
|
||||
<item android:gravity="bottom">
|
||||
<shape android:shape="rectangle">
|
||||
<size android:height="1dp" />
|
||||
<solid android:color="#F3F3F3" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
BIN
app/src/main/res/drawable/first_add.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
@@ -2,4 +2,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#FAFAFA"/>
|
||||
<corners android:radius="11dp"/>
|
||||
<stroke android:width="2dp" android:color="#FAFAFA"/>
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/gender_background_select.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#FAFAFA"/>
|
||||
<corners android:radius="11dp"/>
|
||||
<stroke android:width="2dp" android:color="#02BEAC"/>
|
||||
</shape>
|
||||
7
app/src/main/res/drawable/gold_coin_bg.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#70C5FFF6"/>
|
||||
<corners android:radius="20dp"/>
|
||||
<!-- 白色边框 -->
|
||||
<stroke android:width="2dp" android:color="#FFFFFF"/>
|
||||
</shape>
|
||||
@@ -1,5 +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"/>
|
||||
<solid android:color="#02BEAC"/>
|
||||
<corners android:radius="50dp"/>
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/list_two_bg_already.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#F1F1F1" /> <!-- 背景色 -->
|
||||
<corners android:radius="5dp" /> <!-- 圆角半径,越大越圆 -->
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/my_keyboard_cancel.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="#F3F4F6"/> <!-- 灰色背景 -->
|
||||
<corners android:radius="50dp"/> <!-- 大圆角 -->
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/operation_add.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
app/src/main/res/drawable/pop_collapse.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/drawable/record.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
app/src/main/res/drawable/round_bg_others_add.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
7
app/src/main/res/drawable/round_bg_others_already.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color=" #F1F1F1" /> <!-- 背景色 -->
|
||||
<corners android:radius="12dp" /> <!-- 圆角半径,越大越圆 -->
|
||||
|
||||
</shape>
|
||||
@@ -2,6 +2,6 @@
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color=" #FFEEE6" /> <!-- 背景色 -->
|
||||
<corners android:radius="14dp" /> <!-- 圆角半径,越大越圆 -->
|
||||
<corners android:radius="12dp" /> <!-- 圆角半径,越大越圆 -->
|
||||
|
||||
</shape>
|
||||
@@ -2,6 +2,6 @@
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color=" #D6E7FF" /> <!-- 背景色 -->
|
||||
<corners android:radius="14dp" /> <!-- 圆角半径,越大越圆 -->
|
||||
<corners android:radius="12dp" /> <!-- 圆角半径,越大越圆 -->
|
||||
|
||||
</shape>
|
||||
|
||||
BIN
app/src/main/res/drawable/second_add.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
app/src/main/res/drawable/third_add.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
@@ -80,9 +80,10 @@
|
||||
android:src="@drawable/male" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/male_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="87dp"
|
||||
android:layout_marginTop="-87dp"
|
||||
android:layout_marginTop="-85dp"
|
||||
android:background="@drawable/gender_background"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal">
|
||||
@@ -117,9 +118,10 @@
|
||||
android:src="@drawable/female" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/female_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="87dp"
|
||||
android:layout_marginTop="-87dp"
|
||||
android:layout_marginTop="-95dp"
|
||||
android:background="@drawable/gender_background"
|
||||
android:orientation="horizontal">
|
||||
|
||||
@@ -161,6 +163,7 @@
|
||||
android:src="@drawable/question_mark_one" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/third_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="87dp"
|
||||
android:layout_marginTop="-87dp"
|
||||
|
||||
20
app/src/main/res/layout/activity_splash.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/startup_page"
|
||||
tools:context=".SplashActivity">
|
||||
|
||||
<!-- <ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminate="true"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" /> -->
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -13,6 +13,7 @@
|
||||
android:layout_marginTop="3dp"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/key_abc"
|
||||
android:layout_width="34dp"
|
||||
@@ -20,7 +21,7 @@
|
||||
android:src="@drawable/jump_to_the_keyboard"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/key_vip"
|
||||
@@ -41,13 +42,15 @@
|
||||
android:paddingStart="4dp"
|
||||
android:paddingEnd="4dp"
|
||||
android:orientation="vertical">
|
||||
<!-- 粘贴框-->
|
||||
|
||||
<!-- 粘贴框 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/paste_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
<!-- 粘贴框 -->
|
||||
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/completion_scroll"
|
||||
android:layout_width="0dp"
|
||||
@@ -59,18 +62,22 @@
|
||||
android:paddingEnd="8dp"
|
||||
android:background="@drawable/keyboard_button_bg3"
|
||||
android:fillViewport="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/completion_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/completion_icon"
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:src="@drawable/copy_the_message"/>
|
||||
android:src="@drawable/copy_the_message" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/completion_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
@@ -88,6 +95,7 @@
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -97,7 +105,6 @@
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!-- 人设和操作 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ai_persona"
|
||||
@@ -112,97 +119,76 @@
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_height="131dp"
|
||||
android:scrollbars="none">
|
||||
|
||||
<com.google.android.flexbox.FlexboxLayout
|
||||
android:id="@+id/persona_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
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"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg3">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="5dp"
|
||||
android:text="Humor"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
</com.google.android.flexbox.FlexboxLayout>
|
||||
app:justifyContent="flex_start"
|
||||
app:alignContent="flex_start"/>
|
||||
</ScrollView>
|
||||
|
||||
<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_Delete"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg2">
|
||||
<ImageView
|
||||
android:layout_width="23dp"
|
||||
android:layout_height="14dp"
|
||||
android:src="@drawable/keyboard_icon_voice"/>
|
||||
</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_Clear"
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_height="41dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg2">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Clear"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/keyboard_button_Delete"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg2">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/keyboard_button_Send"
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginTop="4dp"
|
||||
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="Send"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="13sp" />
|
||||
<ImageView
|
||||
android:layout_width="23dp"
|
||||
android:layout_height="14dp"
|
||||
android:src="@drawable/keyboard_icon_voice" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/keyboard_button_Clear"
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_height="41dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg2">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Clear"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/keyboard_button_Send"
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginTop="4dp"
|
||||
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="Send"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- `````````````````````````````````````````````````````````````````````````````````````` -->
|
||||
|
||||
<!-- 输出区域 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ai_output"
|
||||
android:layout_width="match_parent"
|
||||
@@ -220,8 +206,9 @@
|
||||
android:id="@+id/container_messages"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"/>
|
||||
android:orientation="vertical" />
|
||||
</ScrollView>
|
||||
|
||||
<!-- 切换按钮 -->
|
||||
<TextView
|
||||
android:id="@+id/Return_keyboard"
|
||||
@@ -234,8 +221,6 @@
|
||||
android:text="Return"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="10sp" />
|
||||
|
||||
</LinearLayout>
|
||||
<!-- `````````````````````````````````````````````````````````````````````````````````````` -->
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -62,18 +62,20 @@
|
||||
android:text="Loading..."
|
||||
android:textSize="10sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
|
||||
<LinearLayout
|
||||
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"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold" />
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:layout_height="28dp"
|
||||
android:background="@drawable/round_bg_two">
|
||||
<ImageView
|
||||
android:id="@+id/add_second_icon"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/second_add"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第一名 -->
|
||||
@@ -117,17 +119,19 @@
|
||||
android:textSize="10sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_add_first"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="28dp"
|
||||
android:gravity="center"
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:text="+"
|
||||
android:textSize="20dp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#F0C729"
|
||||
android:background="@drawable/round_bg_one" />
|
||||
android:layout_height="28dp"
|
||||
android:background="@drawable/round_bg_one">
|
||||
<ImageView
|
||||
android:id="@+id/add_first_icon"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/first_add"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第三名 -->
|
||||
@@ -172,17 +176,20 @@
|
||||
android:textSize="10sp"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
<TextView
|
||||
|
||||
<LinearLayout
|
||||
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"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#FFD9C4"
|
||||
android:background="@drawable/round_bg_three" />
|
||||
android:layout_width="60dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:layout_height="28dp"
|
||||
android:background="@drawable/round_bg_three">
|
||||
<ImageView
|
||||
android:id="@+id/add_third_icon"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/third_add"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
83
app/src/main/res/layout/dialog_confirm_delete_character.xml
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="320dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="18dp"
|
||||
android:background="@drawable/dialog_background">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Delete character design?"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="Are you sure you want to delete this character profile?"
|
||||
android:textColor="#6B7280"
|
||||
android:textSize="13sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_emoji"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="28dp"
|
||||
android:gravity="center"
|
||||
android:text="🙂"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Prof."
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="18dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="Cancel"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/my_keyboard_cancel" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_confirm"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="10dp"
|
||||
android:gravity="center"
|
||||
android:text="Delete"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/my_keyboard_delete" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -69,14 +69,17 @@
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/et_feedback"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="259dp"
|
||||
android:layout_height="200dp"
|
||||
android:gravity="top|start"
|
||||
android:hint="Please enter your feedback..."
|
||||
android:padding="12dp"
|
||||
android:inputType="textMultiLine"
|
||||
android:overScrollMode="never"
|
||||
android:maxLines="6"
|
||||
android:minLines="4" />
|
||||
android:minLines="4"
|
||||
android:maxLines="10"
|
||||
android:scrollbars="vertical"
|
||||
android:isScrollContainer="true"
|
||||
android:nestedScrollingEnabled="true" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<?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:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_circle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Circle 页面"
|
||||
android:textSize="24sp" />
|
||||
</FrameLayout>
|
||||
28
app/src/main/res/layout/fragment_consumption_record.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
tools:context=".ui.mine.consumptionRecord.ConsumptionRecordFragment">
|
||||
|
||||
<!-- 整页下拉刷新:包住唯一可滚动容器 RecyclerView -->
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipeRefresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/login_bg">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvTransactions"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:clipToPadding="false"
|
||||
android:paddingBottom="16dp" />
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -8,13 +8,13 @@
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.home.HomeFragment">
|
||||
|
||||
<!-- 背景-->
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/bg"
|
||||
android:scaleType="fitXY"
|
||||
android:adjustViewBounds="true" />
|
||||
<!-- 背景-->
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/bg"
|
||||
android:scaleType="fitXY"
|
||||
android:adjustViewBounds="true" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
@@ -154,6 +154,48 @@
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- 消费记录 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/click_record"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/settings"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/record" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="Consumption Record"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textStyle="bold"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="9dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/more_icons" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 注意 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/click_Notice"
|
||||
@@ -198,6 +240,7 @@
|
||||
|
||||
<!-- 分享应用 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/click_Share"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64dp"
|
||||
android:layout_marginTop="20dp"
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:background="#f5f5f5"
|
||||
android:background="@drawable/ai_caard_bg"
|
||||
android:padding="10dp" />
|
||||
</LinearLayout>
|
||||
|
||||
32
app/src/main/res/layout/item_ai_persona_card.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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_root"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:gravity="center"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg3">
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
app:civ_border_width="0dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="5dp"
|
||||
android:text="Humor"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp" />
|
||||
|
||||
</LinearLayout>
|
||||
30
app/src/main/res/layout/item_keyboard_character.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/item_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="44dp"
|
||||
android:layout_margin="6dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:background="#FFFFFF"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_emoji"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:gravity="center"
|
||||
android:text="😄"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Prof."
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
22
app/src/main/res/layout/item_loading_footer.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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:gravity="center"
|
||||
android:paddingTop="14dp"
|
||||
android:paddingBottom="14dp">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvLoading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="Loading..."
|
||||
android:textSize="12sp"
|
||||
android:textColor="#666666" />
|
||||
</LinearLayout>
|
||||
@@ -70,20 +70,23 @@
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<TextView
|
||||
<LinearLayout
|
||||
android:id="@+id/operation"
|
||||
android:gravity="center"
|
||||
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" />
|
||||
android:background="@drawable/list_two_bg">
|
||||
<ImageView
|
||||
android:id="@+id/operation_add_icon"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/operation_add"/>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
@@ -57,16 +57,17 @@
|
||||
android:textColor="#9A9A9A" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_add"
|
||||
android:gravity="center"
|
||||
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" />
|
||||
android:background="@drawable/round_bg_others">
|
||||
<ImageView
|
||||
android:id="@+id/add_icon"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:src="@drawable/round_bg_others_add"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- 内容卡片结束 -->
|
||||
47
app/src/main/res/layout/item_transaction_record.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?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:layout_marginTop="12dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:padding="20dp"
|
||||
android:background="@drawable/consumption_details_bg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDesc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Date"
|
||||
android:textColor="#020202"
|
||||
android:textStyle="bold"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="0000-00-00 00:00:00"
|
||||
android:textColor="#9E9E9E"
|
||||
android:textStyle="bold"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAmount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end"
|
||||
android:text="00.00"
|
||||
android:textStyle="bold"
|
||||
android:textSize="18sp" />
|
||||
</LinearLayout>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/background"
|
||||
@@ -60,14 +61,22 @@
|
||||
|
||||
|
||||
<!-- 补全建议区域(可横向滑动) -->
|
||||
<HorizontalScrollView
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/completion_scroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:background="@drawable/complete_bg">
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:scrollbars="none"
|
||||
android:overScrollMode="never"
|
||||
android:background="@drawable/complete_bg"
|
||||
android:id="@+id/completion_scroll">
|
||||
android:overScrollMode="never"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:id="@+id/completion_HorizontalScrollView">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/completion_suggestions"
|
||||
@@ -307,10 +316,24 @@
|
||||
android:clickable="true"
|
||||
android:background="@drawable/btn_keyboard"
|
||||
android:textColor="#FFFFFF"/>
|
||||
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/associate_close"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/complete_close_bg"
|
||||
android:gravity="center"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
<ImageView
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="10dp"
|
||||
android:src="@drawable/associate_close"/>
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<!-- 第一行字母键 -->
|
||||
<LinearLayout
|
||||
@@ -323,80 +346,80 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_q"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_w"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_e"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_r"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_t"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_y"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_u"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_i"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_o"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
android:gravity="center"/>
|
||||
<TextView
|
||||
android:id="@+id/key_p"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -413,8 +436,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_a"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -422,8 +445,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_s"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -431,8 +454,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_d"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -440,8 +463,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_f"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -449,8 +472,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_g"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -458,8 +481,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_h"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -467,8 +490,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_j"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -476,8 +499,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_k"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -485,8 +508,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_l"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -503,9 +526,9 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_up"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -513,8 +536,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_z"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -522,8 +545,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_x"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -531,8 +554,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_c"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -540,8 +563,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_v"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -549,8 +572,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_b"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -558,8 +581,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_n"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -567,8 +590,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_m"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -577,8 +600,8 @@
|
||||
<TextView
|
||||
android:id="@+id/key_del"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -597,7 +620,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_123"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -606,7 +629,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_emoji"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -614,8 +637,8 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_space"
|
||||
android:layout_width="181dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="177dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
@@ -624,7 +647,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_send"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:clickable="true"
|
||||
|
||||
136
app/src/main/res/layout/layout_consumption_record_header.xml
Normal file
@@ -0,0 +1,136 @@
|
||||
<?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="vertical">
|
||||
|
||||
<!-- 标题和返回 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="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:layout_marginEnd="49dp"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:text="Consumption record"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 金币显示卡片 -->
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="126dp"
|
||||
android:elevation="10dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/gold_coin_bg">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="My points"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:padding="20dp" />
|
||||
|
||||
<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_marginStart="20dp"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/balance"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
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: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>
|
||||
</FrameLayout>
|
||||
|
||||
<!-- 列表标题 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="18dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Consumption Details"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -56,7 +56,6 @@
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 内容-->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -64,62 +63,30 @@
|
||||
android:padding="15dp"
|
||||
android:layout_marginTop="90dp"
|
||||
android:background="@drawable/mykeyboard_bg"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 卡片 -->
|
||||
<LinearLayout
|
||||
android:layout_width="115dp"
|
||||
android:layout_height="42dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:layout_width="109dp"
|
||||
android:layout_height="36dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:background="#FFFFFF">
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/default_avatar"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_keyboard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:overScrollMode="never"
|
||||
tools:listitem="@layout/item_keyboard_character" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="5dp"
|
||||
android:text="Humor"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="13sp"/>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_width="11dp"
|
||||
android:layout_height="11dp"
|
||||
android:layout_marginStart="-5dp"
|
||||
android:layout_marginTop="-15dp"
|
||||
android:text="-"
|
||||
android:textSize="5sp"
|
||||
android:textColor="#ffffff"
|
||||
android:background="@drawable/my_keyboard_delete"
|
||||
android:gravity="center"/>
|
||||
</LinearLayout>
|
||||
<!-- `````````````````` -->
|
||||
</LinearLayout>
|
||||
<!-- 按钮 -->
|
||||
<TextView
|
||||
android:id="@+id/btn_keyboard"
|
||||
android:layout_width="343dp"
|
||||
android:layout_height="45dp"
|
||||
android:gravity="center"
|
||||
android:text="Save"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp"
|
||||
android:background="@drawable/my_keyboard_delete"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_keyboard"
|
||||
android:layout_width="343dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:gravity="center"
|
||||
android:text="Save"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="16sp"
|
||||
android:background="@drawable/my_keyboard_delete"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -68,8 +68,8 @@
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/key_1"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -77,72 +77,72 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/key_2"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_3"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_4"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_5"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_6"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_7"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_8"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_9"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_0"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -158,80 +158,80 @@
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/key_minus"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_slash"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_colon"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_semicolon"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_paren_l"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_paren_r"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_dollar"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_amp"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_at"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
android:clickable="true"/>
|
||||
<TextView
|
||||
android:id="@+id/key_quote_d"
|
||||
android:layout_width="33dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -248,8 +248,8 @@
|
||||
<TextView
|
||||
android:id="@+id/key_symbols_more"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -257,7 +257,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_dot"
|
||||
android:layout_width="47dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -265,7 +265,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_comma"
|
||||
android:layout_width="47dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -273,7 +273,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_question"
|
||||
android:layout_width="47dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -281,7 +281,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_exclam"
|
||||
android:layout_width="47dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -289,7 +289,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_quote"
|
||||
android:layout_width="47dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -297,8 +297,8 @@
|
||||
<TextView
|
||||
android:id="@+id/key_del"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_height="41dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -315,7 +315,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_abc"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -323,15 +323,15 @@
|
||||
<TextView
|
||||
android:id="@+id/key_emoji"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
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:layout_width="177dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
@@ -339,7 +339,7 @@
|
||||
<TextView
|
||||
android:id="@+id/key_send"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="41dp"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#A9A9A9"
|
||||
android:gravity="center"
|
||||
|
||||
@@ -96,6 +96,7 @@
|
||||
android:orientation="vertical">
|
||||
<!-- Nickname -->
|
||||
<LinearLayout
|
||||
android:id="@+id/row_nickname"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -117,6 +118,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/tv_nickname_value"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Nickname"
|
||||
@@ -138,6 +140,7 @@
|
||||
|
||||
<!-- Gender -->
|
||||
<LinearLayout
|
||||
android:id="@+id/row_gender"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -159,6 +162,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/tv_gender_value"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Gender"
|
||||
@@ -180,6 +184,7 @@
|
||||
|
||||
<!-- User ID -->
|
||||
<LinearLayout
|
||||
android:id="@+id/row_userid"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -201,6 +206,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/tv_userid_value"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="88888888"
|
||||
|
||||
61
app/src/main/res/layout/sheet_edit_nickname.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?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:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
android:background="#F8F8F8"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- Header -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Change the nickname"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_close"
|
||||
android:layout_width="26dp"
|
||||
android:layout_height="26dp"
|
||||
android:src="@drawable/pop_collapse"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Input -->
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
app:boxBackgroundMode="none">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/et_nickname"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:background="#FFFFFF"/>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="43dp"/>
|
||||
<!-- Save -->
|
||||
<TextView
|
||||
android:id="@+id/btn_save"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:gravity="center"
|
||||
android:text="Save"
|
||||
android:textColor="#FFFFFF"
|
||||
android:background="@drawable/keyboard_ettings"/>
|
||||
</LinearLayout>
|
||||
76
app/src/main/res/layout/sheet_select_gender.xml
Normal file
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- Header -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Modify gender"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_close"
|
||||
android:layout_width="26dp"
|
||||
android:layout_height="26dp"
|
||||
android:src="@drawable/pop_collapse"/>
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="180dp"
|
||||
android:layout_marginTop="16dp">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/gender_wheel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:nestedScrollingEnabled="true"
|
||||
android:clipToPadding="false"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/line_top"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_gravity="center"
|
||||
android:translationY="-24dp"
|
||||
android:background="#D8D8D8"
|
||||
android:clickable="false"
|
||||
android:focusable="false"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/line_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_gravity="center"
|
||||
android:translationY="24dp"
|
||||
android:background="#D8D8D8"
|
||||
android:clickable="false"
|
||||
android:focusable="false"/>
|
||||
</FrameLayout>
|
||||
|
||||
<!-- Save -->
|
||||
<TextView
|
||||
android:id="@+id/btn_save"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="43dp"
|
||||
android:gravity="center"
|
||||
android:text="Save"
|
||||
android:textColor="#FFFFFF"
|
||||
android:background="@drawable/keyboard_ettings"/>
|
||||
</LinearLayout>
|
||||
@@ -62,16 +62,16 @@
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView android:id="@+id/key_bracket_l" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_bracket_r" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_brace_l" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_brace_r" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_hash" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_percent" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_caret" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_asterisk" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_plus" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_equal" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_bracket_l" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_bracket_r" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_brace_l" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_brace_r" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_hash" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_percent" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_caret" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_asterisk" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_plus" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_equal" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第二行: _ \ | ~ < > € £ ¥ · -->
|
||||
@@ -82,16 +82,16 @@
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView android:id="@+id/key_underscore" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_backslash" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_pipe" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_tilde" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_lt" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_gt" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_euro" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_pound" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_money" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_bullet" android:layout_width="33dp" android:layout_height="40dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_underscore" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_backslash" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_pipe" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_tilde" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_lt" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_gt" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_euro" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_pound" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_money" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_bullet" android:layout_width="32dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第三行: . , . , ? ! ' [delete ×2] (中间两个小点按你的图可只保留 . ,) -->
|
||||
@@ -101,13 +101,13 @@
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
<TextView android:id="@+id/key_symbols_123" android:layout_width="40dp" android:layout_height="40dp" android:layout_marginEnd="16dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_dot" 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_comma" 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_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_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"/>
|
||||
<TextView android:id="@+id/key_symbols_123" android:layout_width="40dp" android:layout_height="41dp" android:layout_marginEnd="10dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_dot" android:layout_width="47dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_comma" android:layout_width="47dp" android:layout_height="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_question" android:layout_width="47dp" android:layout_height="41dp" 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="41dp" 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="41dp" 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="41dp" android:layout_marginStart="10dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 第四行:123 | abc | [Space ×3] | send -->
|
||||
@@ -117,9 +117,9 @@
|
||||
android:layout_weight="1"
|
||||
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_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"/>
|
||||
<TextView android:id="@+id/key_abc" android:layout_width="42dp" android:layout_height="41dp" 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="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
<TextView android:id="@+id/key_space" android:layout_width="177dp" android:layout_height="41dp" 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="41dp" android:textSize="12sp" android:textColor="#A9A9A9" android:gravity="center" android:clickable="true"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
android:name="com.example.myapplication.ui.EmptyFragment"
|
||||
android:label="empty" />
|
||||
|
||||
<!-- 圈子 -->
|
||||
<fragment
|
||||
android:id="@+id/circleFragment"
|
||||
android:name="com.example.myapplication.ui.circle.CircleFragment"
|
||||
android:label="Circle"
|
||||
tools:layout="@layout/fragment_circle" />
|
||||
|
||||
<!-- 充值 -->
|
||||
<fragment
|
||||
android:id="@+id/rechargeFragment"
|
||||
@@ -86,6 +79,50 @@
|
||||
android:label="Forget Password Reset"
|
||||
tools:layout="@layout/fragment_forget_password_reset" />
|
||||
|
||||
<!-- 消费记录 -->
|
||||
<fragment
|
||||
android:id="@+id/consumptionRecordFragment"
|
||||
android:name="com.example.myapplication.ui.mine.consumptionRecord.ConsumptionRecordFragment"
|
||||
android:label="Consumption Record"
|
||||
tools:layout="@layout/fragment_consumption_record" />
|
||||
|
||||
<!-- 个人设置 -->
|
||||
<fragment
|
||||
android:id="@+id/PersonalSettings"
|
||||
android:name="com.example.myapplication.ui.mine.myotherpages.PersonalSettings"
|
||||
android:label="Personal Settings"
|
||||
tools:layout="@layout/personal_settings" />
|
||||
|
||||
<!-- 键盘设置 -->
|
||||
<fragment
|
||||
android:id="@+id/MyKeyboard"
|
||||
android:name="com.example.myapplication.ui.keyboard.MyKeyboard"
|
||||
android:label="My Keyboard"
|
||||
tools:layout="@layout/my_keyboard" />
|
||||
|
||||
<!-- 反馈页面 -->
|
||||
<fragment
|
||||
android:id="@+id/feedbackFragment"
|
||||
android:name="com.example.myapplication.ui.mine.myotherpages.FeedbackFragment"
|
||||
android:label="Feedback"
|
||||
tools:layout="@layout/feedback_fragment" />
|
||||
|
||||
<!-- 通知页面 -->
|
||||
<fragment
|
||||
android:id="@+id/notificationFragment"
|
||||
android:name="com.example.myapplication.ui.mine.myotherpages.NotificationFragment"
|
||||
android:label="Notification"
|
||||
tools:layout="@layout/notification_fragment" />
|
||||
|
||||
<!-- 消费记录跳转 -->
|
||||
<action
|
||||
android:id="@+id/action_global_consumptionRecordFragment"
|
||||
app:destination="@id/consumptionRecordFragment"
|
||||
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_global_rechargeFragment"
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
app:popExitAnim="@anim/fade_out_fast" />
|
||||
</fragment>
|
||||
|
||||
<!-- 个人设置页面 -->
|
||||
<fragment
|
||||
android:id="@+id/PersonalSettings"
|
||||
android:name="com.example.myapplication.ui.mine.myotherpages.PersonalSettings"
|
||||
|
||||
@@ -12,9 +12,16 @@
|
||||
<string name="key_9">9</string>
|
||||
<string name="key_shift">Shift</string>
|
||||
<string name="key_space">Space</string>
|
||||
<string name="key_backspace">Backspace</string>
|
||||
<string name="key_del">Backspace</string>
|
||||
<string name="key_switch">ABC/123</string>
|
||||
<string name="key_comma">,</string>
|
||||
<string name="key_period">.</string>
|
||||
<string name="key_enter">Enter</string>
|
||||
<string name="choose_from_gallery">从相册选择</string>
|
||||
<string name="take_photo">拍照</string>
|
||||
<string name="change_avatar">更换头像</string>
|
||||
<string name="cancel">取消</string>
|
||||
<string name="avatar_updated">头像更新成功</string>
|
||||
<string name="upload_failed">上传失败</string>
|
||||
<string name="upload_error">上传出错</string>
|
||||
</resources>
|
||||
|
||||
6
app/src/main/res/xml/file_paths.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<external-files-path
|
||||
name="my_images"
|
||||
path="Pictures" />
|
||||
</paths>
|
||||