基本优化完毕
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
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
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"
|
||||
|
||||
30
app/src/main/res/layout/item_keyboard_character.xml
Normal file
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
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
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
|
||||
|
||||
136
app/src/main/res/layout/layout_consumption_record_header.xml
Normal file
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>
|
||||
@@ -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
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
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>
|
||||
Reference in New Issue
Block a user