6.5.4礼物冠名

This commit is contained in:
18401019693
2023-08-02 13:23:37 +08:00
parent 54458bd0c0
commit 5afa3bd30b
31 changed files with 1034 additions and 45 deletions

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="false">
<shape android:shape="rectangle">
<corners android:radius="6dp" />
<solid android:color="#FFFFFF" />
</shape>
</item>
<item android:state_selected="true">
<shape android:shape="rectangle">
<corners android:radius="6dp" />
<solid android:color="#F0DBFF" />
</shape>
</item>
</selector>

View File

@@ -0,0 +1,49 @@
<?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="match_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp">
<TextView
android:id="@+id/winner_of_the_month"
android:layout_width="90dp"
android:layout_height="25dp"
android:layout_marginStart="55dp"
android:background="@drawable/background_select_all_service"
android:gravity="center"
android:text="@string/winner_of_the_month"
android:textColor="#FF8331"
android:textSize="12sp" />
<TextView
android:id="@+id/last_month_winner"
android:layout_width="90dp"
android:layout_height="25dp"
android:layout_gravity="end"
android:layout_marginEnd="55dp"
android:background="@drawable/background_select_all_service"
android:gravity="center"
android:text="@string/last_month_winner"
android:textColor="#FF8331"
android:textSize="12sp" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="12dp"
android:text="@string/last_month_winner_hint"
android:textColor="#807CFF"
android:textSize="10sp" />
<FrameLayout
android:id="@+id/context_layout_gift"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>

View File

@@ -0,0 +1,24 @@
<?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="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/gift_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="5dp"
android:paddingTop="15dp"
android:paddingEnd="5dp"
android:paddingBottom="15dp"
android:visibility="gone" />
<ImageView
android:id="@+id/no_data"
android:layout_width="140dp"
android:layout_height="95dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="80dp"
android:background="@drawable/icon_gift_wall_no_data" />
</LinearLayout>

View File

@@ -74,6 +74,7 @@
android:textSize="12sp" />
<TextView
android:id="@+id/instant_light"
android:layout_width="100dp"
android:layout_height="28dp"
android:layout_gravity="center_horizontal"

View File

@@ -0,0 +1,24 @@
<?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="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/gift_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="5dp"
android:paddingTop="15dp"
android:paddingEnd="5dp"
android:paddingBottom="15dp"
android:visibility="gone" />
<ImageView
android:id="@+id/no_data"
android:layout_width="140dp"
android:layout_height="95dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="80dp"
android:background="@drawable/icon_gift_wall_no_data" />
</LinearLayout>

View File

@@ -0,0 +1,65 @@
<?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:layout_margin="5dp"
android:background="@mipmap/background_gift_already_wall"
android:orientation="vertical">
<ImageView
android:id="@+id/gift_img"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="6dp" />
<TextView
android:id="@+id/gift_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="2dp"
android:text="@string/instant_light"
android:textColor="#FFFFFF"
android:textSize="12sp" />
<TextView
android:id="@+id/naming_coin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="2dp"
android:text="@string/instant_light"
android:textColor="#FFFFFF"
android:textSize="14sp" />
a
<LinearLayout
android:layout_width="wrap_content"
android:layout_marginStart="9dp"
android:layout_marginEnd="9dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="9dp"
android:gravity="center_vertical"
android:paddingBottom="5dp">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/avatar"
android:layout_width="19dp"
android:layout_height="19dp"
android:scaleType="centerCrop"
android:src="@drawable/m_chu_xia"
app:riv_oval="true" />
<TextView
android:id="@+id/user_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginStart="4dp"
android:text="@string/instant_light"
android:textColor="#4F00F9"
android:textSize="11sp" />
</LinearLayout>
</LinearLayout>

View File

@@ -1,10 +1,158 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardCornerRadius="10dp"
app:cardElevation="0dp"
android:layout_width="315dp"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="315dp"
android:orientation="vertical">
android:orientation="vertical"
app:cardCornerRadius="10dp"
app:cardElevation="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="18dp"
android:text="@string/gift_details_hint"
android:textColor="#5665FF"
android:textSize="14sp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="18dp">
<LinearLayout
android:layout_width="107dp"
android:layout_height="wrap_content"
android:layout_marginStart="18dp"
android:orientation="vertical">
<FrameLayout
android:layout_width="107dp"
android:layout_height="107dp"
android:background="@mipmap/background_gift_wall_item">
<ImageView
android:id="@+id/gift_img"
android:layout_width="66dp"
android:layout_height="66dp"
android:layout_gravity="center" />
</FrameLayout>
<TextView
android:id="@+id/gift_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:text="@string/gift_details_hint"
android:textColor="#5665FF"
android:textSize="14sp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:gravity="center_vertical">
<ImageView
android:layout_width="14dp"
android:layout_height="14dp"
android:src="@mipmap/diamond" />
<TextView
android:id="@+id/price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:text="0"
android:textColor="#5665FF"
android:textSize="13sp" />
</LinearLayout>
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="107dp"
android:layout_height="wrap_content"
android:layout_marginEnd="18dp"
android:orientation="vertical">
<FrameLayout
android:layout_width="107dp"
android:layout_height="107dp"
android:background="@mipmap/background_gift_wall_item">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/avatar"
android:layout_width="66dp"
android:layout_height="66dp"
android:layout_gravity="center"
android:scaleType="centerCrop"
android:src="@drawable/m_chu_xia"
app:riv_oval="true" />
</FrameLayout>
<TextView
android:id="@+id/vacant_position_awaits"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:text="@string/vacant_position_awaits"
android:textColor="#454976"
android:textSize="14sp" />
<TextView
android:id="@+id/vacant_position"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="8dp"
android:text="?"
android:textColor="#454976"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/gift_details_btn"
android:layout_width="100dp"
android:layout_height="28dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="23dp"
android:background="@drawable/background_skip_button"
android:gravity="center"
android:text="@string/regular_bubble"
android:textColor="#F16D00"
android:textSize="14sp"
android:textStyle="bold" />
<View
android:layout_width="1dp"
android:layout_height="0dp"
android:layout_weight="1" />
<TextView
android:id="@+id/distance_naming"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="19dp"
android:text="@string/distance_naming" />
</LinearLayout>
</androidx.cardview.widget.CardView>

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -1272,7 +1272,7 @@ Limited ride And limited avatar frame</string>
<string name="gift_wall_entrance6">When the gift in the guidebook is the same as the gift in the gift wall, give the same gift Objects, first point the gift on the gift wall, and then light up the gift in the guidebook. Honor achievement</string>
<string name="gift_wall_entrance7">Medal of Achievement</string>
<string name="gift_wall_entrance8_1">Medal of achievement</string>
<string name="gift_wall_entrance8_2">Currently, there are three achievements, namely A cloud of good friendsVery rich</string>
<string name="gift_wall_entrance8_2">Currently, there are three achievements, namely A cloud of good friends A rich party, Very rich</string>
<string name="gift_wall_entrance8_3">A cloud of good friends: When the number of gifts received reaches 20, 30, 50, 100When it comes to 200 models, light up the corresponding achievements separately;Rich and capriciou</string>
<string name="gift_wall_entrance8_4">A rich party: When the price of a single gift received exceeds 50000 diamonds, it is sufficient Illuminate the achievement;</string>
<string name="gift_wall_entrance8_5">Very rich: When receiving 100 gifts priced over 3000 diamonds, i.e This achievement can be illuminated.</string>

View File

@@ -1270,7 +1270,7 @@ Limited ride And limited avatar frame</string>
<string name="gift_wall_entrance6">When the gift in the guidebook is the same as the gift in the gift wall, give the same gift Objects, first point the gift on the gift wall, and then light up the gift in the guidebook. Honor achievement</string>
<string name="gift_wall_entrance7">Medal of Achievement</string>
<string name="gift_wall_entrance8_1">Medal of achievement</string>
<string name="gift_wall_entrance8_2">Currently, there are three achievements, namely A cloud of good friendsVery rich</string>
<string name="gift_wall_entrance8_2">Currently, there are three achievements, namely A cloud of good friends A rich party, Very rich</string>
<string name="gift_wall_entrance8_3">A cloud of good friends: When the number of gifts received reaches 20, 30, 50, 100When it comes to 200 models, light up the corresponding achievements separately;Rich and capriciou</string>
<string name="gift_wall_entrance8_4">A rich party: When the price of a single gift received exceeds 50000 diamonds, it is sufficient Illuminate the achievement;</string>
<string name="gift_wall_entrance8_5">Very rich: When receiving 100 gifts priced over 3000 diamonds, i.e This achievement can be illuminated.</string>
@@ -1283,5 +1283,13 @@ Limited ride And limited avatar frame</string>
<string name="codex">Illustrated book</string>
<string name="honorary_achievement">Honorary achievement</string>
<string name="lit_icon">Lit</string>
<string name="rule_introduction">規則介紹</string>
<string name="gift_details_hint">禮物詳情</string>
<string name="vacant_position_awaits">虛位以待</string>
<string name="distance_naming">距離冠名還需%s鑽</string>
<string name="send_hem">送TA</string>
<string name="winner_of_the_month">本月得主</string>
<string name="last_month_winner">上月得主</string>
<string name="last_month_winner_hint">上月奪得最終禮物冠名權用戶將獲得該禮物一個月專屬冠名皮膚</string>
</resources>