新增帮助与反馈功能
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="345dp" android:height="145dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#fff7f7f7" />
|
||||
<corners android:topLeftRadius="10dp" android:topRightRadius="10dp" android:bottomLeftRadius="10dp" android:bottomRightRadius="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
9
main/src/main/res/drawable/bg_btn_feedback_success.xml
Normal file
9
main/src/main/res/drawable/bg_btn_feedback_success.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="132dp" android:height="50dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#ffffe34f" />
|
||||
<corners android:topLeftRadius="10dp" android:topRightRadius="10dp" android:bottomLeftRadius="10dp" android:bottomRightRadius="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
61
main/src/main/res/layout/activity_feedback.xml
Normal file
61
main/src/main/res/layout/activity_feedback.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFFFF">
|
||||
|
||||
<include
|
||||
android:id="@+id/include4"
|
||||
layout="@layout/view_title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView12"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:text="@string/activity_feedback_title"
|
||||
android:textColor="#777777"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/linearLayout4"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="130dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/include4">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_cs"
|
||||
android:layout_width="165dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#F7F7F7"
|
||||
android:text="@string/activity_feedback_customer_service"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="#333333"
|
||||
android:textSize="13sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_feedback"
|
||||
android:layout_width="165dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="#F7F7F7"
|
||||
android:text="@string/activity_feedback_feedback"
|
||||
android:textColor="#333333"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
198
main/src/main/res/layout/activity_feedback_edit.xml
Normal file
198
main/src/main/res/layout/activity_feedback_edit.xml
Normal file
@@ -0,0 +1,198 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFFFF"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include
|
||||
android:id="@+id/include4"
|
||||
layout="@layout/view_title" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/activity_feedback_edit_feedback_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="*"
|
||||
android:textColor="#FF5656"
|
||||
android:textSize="15sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="145dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginEnd="15dp">
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tv_feedback"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/bg_btn_feedback_edit_tv_edit"
|
||||
android:ems="10"
|
||||
android:gravity="start"
|
||||
android:hint="@string/activity_feedback_edit_feedback_hint"
|
||||
android:inputType="text|textMultiLine"
|
||||
android:padding="15dp"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_number"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="0"
|
||||
android:textColor="#333333"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_max"
|
||||
android:textColor="#333333"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="/500" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/activity_feedback_edit_feedback_img_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/imgLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img1"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/icon_activity_feedback_edit_img_add" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:src="@mipmap/icon_activity_feedback_edit_img_add"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:src="@mipmap/icon_activity_feedback_edit_img_add"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/activity_feedback_edit_feedback_ci_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_ci"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@drawable/bg_btn_feedback_edit_tv_edit"
|
||||
android:ems="10"
|
||||
android:hint="@string/activity_feedback_edit_feedback_ci_hint"
|
||||
android:inputType="text"
|
||||
android:padding="15dp"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_sub"
|
||||
android:layout_width="132dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="80dp"
|
||||
android:background="@drawable/bg_btn_feedback_success"
|
||||
android:text="@string/activity_feedback_edit_feedback_btn"
|
||||
android:textAllCaps="false" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="11dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/activity_feedback_edit_feedback_btn_tips"
|
||||
android:textColor="#777777"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="*"
|
||||
android:textColor="#FF5656"
|
||||
android:textSize="11sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
55
main/src/main/res/layout/activity_feedback_success.xml
Normal file
55
main/src/main/res/layout/activity_feedback_success.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<?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:background="#FFFFFF"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView14"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/activity_feedback_success_tips"
|
||||
android:textSize="13sp"
|
||||
android:textColor="#333333"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView11"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="19dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView14"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:srcCompat="@mipmap/icon_activity_feedback_success" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView15"
|
||||
android:textSize="24sp"
|
||||
android:textColor="#777777"
|
||||
android:layout_width="wrap_content"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="19dp"
|
||||
android:text="@string/activity_feedback_success_title"
|
||||
app:layout_constraintBottom_toTopOf="@+id/imageView11"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/sub"
|
||||
android:layout_width="132dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/activity_feedback_success_sub"
|
||||
android:textAllCaps="false"
|
||||
android:background="@drawable/bg_btn_feedback_success"
|
||||
android:layout_marginTop="70dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView14" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
@@ -18,5 +18,25 @@
|
||||
<string name="battlepass_exchange_submit_lock">未解鎖</string>
|
||||
<string name="battlepass_reward_item_lock">暫未達到等級</string>
|
||||
<string name="battlepass_reward_item_get">領取成功</string>
|
||||
|
||||
<string name="activity_feedback_top_title">幫助與反饋</string>
|
||||
<string name="activity_feedback_title">有什麼可以幫到您?</string>
|
||||
<string name="activity_feedback_customer_service">智能客服</string>
|
||||
<string name="activity_feedback_feedback">意見反餽</string>
|
||||
<string name="activity_feedback_success_title">提交成功</string>
|
||||
<string name="activity_feedback_success_tips">感謝您的反饋!</string>
|
||||
<string name="activity_feedback_success_sub">確定</string>
|
||||
<string name="activity_feedback_edit_feedback_top">意見反饋</string>
|
||||
<string name="activity_feedback_edit_feedback_title">問題描述</string>
|
||||
<string name="activity_feedback_edit_feedback_hint">請描述您需要解決的問題</string>
|
||||
<string name="activity_feedback_edit_feedback_img_title">問題圖片</string>
|
||||
<string name="activity_feedback_edit_feedback_ci_title">聯繫方式</string>
|
||||
<string name="activity_feedback_edit_feedback_ci_hint">留下您的電話或郵箱,方便我們與您聯繫</string>
|
||||
<string name="activity_feedback_edit_feedback_btn">提交</string>
|
||||
<string name="activity_feedback_edit_feedback_btn_tips">為必填項</string>
|
||||
<string name="activity_feedback_edit_img_type1_upload">上傳圖片</string>
|
||||
<string name="activity_feedback_edit_img_type2_delete">刪除</string>
|
||||
<string name="activity_feedback_edit_img_type2_change">更換圖片</string>
|
||||
<string name="activity_feedback_edit_submit_tip1">請描述您的問題</string>
|
||||
<string name="activity_feedback_edit_submit_tip2">超過字數要求</string>
|
||||
<string name="activity_feedback_edit_submit_tip3">今日反饋次數已用完</string>
|
||||
</resources>
|
||||
@@ -18,5 +18,25 @@
|
||||
<string name="battlepass_exchange_submit_lock">Unlocked</string>
|
||||
<string name="battlepass_reward_item_lock">Not yet reached level</string>
|
||||
<string name="battlepass_reward_item_get">Successfully claimed</string>
|
||||
|
||||
<string name="activity_feedback_top_title">Help And Feedback</string>
|
||||
<string name="activity_feedback_title">May I Help You?</string>
|
||||
<string name="activity_feedback_customer_service">Intelligent\nCustomer Service</string>
|
||||
<string name="activity_feedback_feedback">Feedback</string>
|
||||
<string name="activity_feedback_success_title">Submitted\nSuccessfully</string>
|
||||
<string name="activity_feedback_success_tips">Thank You For Your Feedback!</string>
|
||||
<string name="activity_feedback_success_sub">Confirm</string>
|
||||
<string name="activity_feedback_edit_feedback_top">Feedback</string>
|
||||
<string name="activity_feedback_edit_feedback_title">Problem Description</string>
|
||||
<string name="activity_feedback_edit_feedback_hint">Please Describe The Problem You Need To See</string>
|
||||
<string name="activity_feedback_edit_feedback_img_title">Problem Pictures</string>
|
||||
<string name="activity_feedback_edit_feedback_ci_title">Contact Information</string>
|
||||
<string name="activity_feedback_edit_feedback_ci_hint">Leave Your Phone Or Email For Us To Contact You</string>
|
||||
<string name="activity_feedback_edit_feedback_btn">Submit</string>
|
||||
<string name="activity_feedback_edit_feedback_btn_tips">required items</string>
|
||||
<string name="activity_feedback_edit_img_type1_upload">Upload images</string>
|
||||
<string name="activity_feedback_edit_img_type2_delete">Delete</string>
|
||||
<string name="activity_feedback_edit_img_type2_change">Replace image</string>
|
||||
<string name="activity_feedback_edit_submit_tip1">Please describe your problem</string>
|
||||
<string name="activity_feedback_edit_submit_tip2">Exceeding the word count requirement</string>
|
||||
<string name="activity_feedback_edit_submit_tip3">Today\'s feedback count has been used up</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user