心愿单添加部分功能实现

This commit is contained in:
18401019693
2023-03-30 14:16:50 +08:00
parent 6d83c6f8ae
commit 70a91fedf3
55 changed files with 1848 additions and 18 deletions

View File

@@ -0,0 +1,44 @@
<?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="304dp"
android:background="@mipmap/img_lu_bg"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.tabs.TabLayout
android:id="@+id/wish_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="2dp"
android:background="@null"
app:tabIndicatorHeight="0dp"
app:tabMode="scrollable"
app:tabRippleColor="@color/transparent" />
<Button
android:id="@+id/wish_gitf_button"
android:layout_width="42dp"
android:layout_height="22dp"
android:layout_gravity="end"
android:layout_marginTop="15dp"
android:layout_marginEnd="18dp"
android:background="@drawable/bg_wish_gitf_button"
android:text="@string/aristocrat_determine"
android:textColor="@color/white"
android:textSize="12sp" />
</FrameLayout>
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/context_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp" />
</LinearLayout>

View File

@@ -0,0 +1,29 @@
<?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="580dp"
android:background="@drawable/bg_xyd"
android:orientation="vertical">
<com.google.android.material.tabs.TabLayout
android:id="@+id/wish_tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="160dp"
android:layout_marginEnd="2dp"
android:background="@null"
android:minWidth="83dp"
app:tabBackground="@drawable/background_wilsh_tab"
app:tabIndicatorHeight="0dp"
app:tabMaxWidth="100dp"
app:tabMode="scrollable"
app:tabRippleColor="@color/transparent" />
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/context_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>

View File

@@ -0,0 +1,134 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tab_bg"
android:layout_width="match_parent"
android:layout_height="119dp"
android:layout_marginStart="11dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="11dp"
android:layout_marginBottom="4dp"
android:background="@drawable/bg_wish_gitf_button">
<FrameLayout
android:id="@+id/icon_cancel"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="end"
android:layout_marginTop="4dp"
android:layout_marginEnd="19dp">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="end"
android:background="@mipmap/icon_cancel" />
</FrameLayout>
<TextView
android:id="@+id/wish_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="13dp"
android:layout_marginTop="4dp"
android:textColor="@color/white"
android:textSize="14sp" />
<FrameLayout
android:id="@+id/wish_icon_bg"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginStart="11dp"
android:layout_marginTop="40dp">
<ImageView
android:id="@+id/wish_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="3dp" />
</FrameLayout>
<TextView
android:id="@+id/wishlist_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="85dp"
android:layout_marginTop="49dp"
android:textColor="@color/white"
android:textSize="16sp" />
<LinearLayout
android:id="@+id/progress_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="85dp"
android:layout_marginTop="78dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="100dp"
android:layout_height="11dp"
android:max="100"
android:progress="30"
android:progressDrawable="@drawable/progress_wishlist2" />
<TextView
android:id="@+id/wishlist_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="9dp"
android:text="2"
android:textColor="#FFE062"
android:textSize="12sp" />
<TextView
android:id="@+id/wishlist_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="/20"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/hind_layout"
android:layout_width="70dp"
android:layout_height="20dp"
android:layout_gravity="end"
android:layout_marginTop="77dp"
android:layout_marginEnd="19dp"
android:background="@drawable/bg_xyd_number"
android:orientation="horizontal">
<TextView
android:id="@+id/subtraction"
android:layout_width="20dp"
android:layout_height="match_parent"
android:gravity="center"
android:text="-"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:id="@+id/wishlist_num2"
android:layout_width="30dp"
android:layout_height="match_parent"
android:gravity="center"
android:text="x23"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:id="@+id/addition"
android:layout_width="20dp"
android:layout_height="match_parent"
android:gravity="center"
android:text="+"
android:textColor="@color/white"
android:textSize="14sp" />
</LinearLayout>
</FrameLayout>

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:id="@+id/wish_gift"
android:gravity="center"
android:background="@drawable/background_wilsh_gitf"
android:orientation="vertical">
<ImageView
android:id="@+id/gift_img"
android:layout_width="44dp"
android:layout_height="44dp" />
<TextView
android:id="@+id/gift_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="香水玫瑰"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>

View File

@@ -0,0 +1,38 @@
<?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="125dp"
android:layout_margin="4dp"
android:background="@mipmap/bg_lunar_wish">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="end"
android:layout_marginTop="4dp"
android:layout_marginEnd="19dp"
android:background="@mipmap/icon_cancel" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="18dp"
android:layout_marginTop="4dp"
android:text="心願二"
android:textColor="@color/white"
android:textSize="14sp" />
<FrameLayout
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginStart="11dp"
android:layout_marginTop="40dp"
android:background="@drawable/background_wish_item">
<ImageView
android:id="@+id/wish_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="3dp" />
</FrameLayout>
</FrameLayout>

View File

@@ -0,0 +1,38 @@
<?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="142dp"
android:layout_margin="4dp"
android:background="@mipmap/bg_seasonal_wish">
<ImageView
android:id="@+id/icon_cancel"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="end"
android:layout_marginTop="17dp"
android:layout_marginEnd="19dp"
android:background="@mipmap/icon_cancel" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="18dp"
android:layout_marginTop="17dp"
android:text="心願二"
android:textColor="@color/white"
android:textSize="14sp" />
<FrameLayout
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginStart="11dp"
android:layout_marginTop="53dp">
<ImageView
android:id="@+id/wish_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="3dp" />
</FrameLayout>
</FrameLayout>

View File

@@ -0,0 +1,38 @@
<?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="119dp"
android:layout_margin="4dp"
android:background="@mipmap/bg_day_wish">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="end"
android:layout_marginTop="4dp"
android:layout_marginEnd="19dp"
android:background="@mipmap/icon_cancel" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="18dp"
android:layout_marginTop="4dp"
android:text="心願二"
android:textColor="@color/white"
android:textSize="14sp" />
<FrameLayout
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginStart="11dp"
android:layout_marginTop="40dp"
android:background="@drawable/background_wish_item">
<ImageView
android:id="@+id/wish_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="3dp" />
</FrameLayout>
</FrameLayout>

View File

@@ -0,0 +1,35 @@
<?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">
<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="117dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/bg_xyd_add_item"
android:layout_marginBottom="4dp"
android:scaleType="centerInside" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/wish_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/tvDone"
android:layout_width="275dp"
android:layout_height="52dp"
android:layout_gravity="bottom|center_horizontal"
android:layout_marginBottom="22dp"
android:background="@drawable/bg_xyd_button" />
</FrameLayout>
</LinearLayout>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/gift_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="35dp" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/wish_tab"
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_gravity="bottom"
android:layout_marginTop="5dp"
android:layout_marginEnd="2dp"
android:layout_marginBottom="10dp"
android:background="@null"
app:tabBackground="@drawable/background_wilsh_tab_gift"
app:tabGravity="center"
app:tabIndicatorHeight="0dp"
app:tabMode="scrollable"
app:tabRippleColor="@color/transparent" />
</FrameLayout>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="#FFFFFF"
android:textSize="16sp">
</TextView>