新版守护,空页面,列表页面。守护类型开通页面。开通时间页面

This commit is contained in:
18401019693
2024-03-06 14:24:04 +08:00
parent 8af7f907eb
commit 6870037683
64 changed files with 2484 additions and 74 deletions

View File

@@ -0,0 +1,102 @@
<?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="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/bg"
android:layout_width="match_parent"
android:layout_height="160dp"
android:layout_marginTop="6dp"
android:scaleType="fitXY"
android:src="@mipmap/bg_star_guard" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="11dp"
android:layout_marginTop="60dp"
android:text="@string/be_their_exclusive_guardian"
android:textColor="#FAE3B9"
android:textSize="12sp" />
<ImageView
android:id="@+id/guardian_medal"
android:layout_width="120dp"
android:layout_height="90dp"
android:layout_gravity="end"
android:layout_marginEnd="3dp"
android:src="@mipmap/icon_king_guardian_medal_grey" />
<FrameLayout
android:layout_width="93dp"
android:layout_height="28dp"
android:layout_gravity="bottom|end"
android:layout_marginEnd="8dp"
android:layout_marginBottom="48dp">
<ImageView
android:id="@+id/guard_open"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@mipmap/icon_bg_star_guard_open" />
<com.flyjingfish.gradienttextviewlib.GradientTextView
android:id="@+id/god_guard"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:letterSpacing="0.1"
android:text="@string/not_yet_open"
android:textSize="16sp"
android:visibility="visible"
app:gradient_angle="45"
app:gradient_endColor="#FFF2D7"
app:gradient_startColor="#FFC179" />
</FrameLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginStart="16dp"
android:layout_marginBottom="38dp"
android:gravity="center_vertical">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/user_avatar"
android:layout_width="51dp"
android:layout_height="51dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="35dp"
android:scaleType="centerCrop"
android:src="@mipmap/icon_male_default"
app:riv_oval="true" />
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/live_avatar"
android:layout_width="51dp"
android:layout_height="51dp"
android:layout_gravity="center_vertical"
android:scaleType="centerCrop"
android:src="@mipmap/icon_male_default"
app:riv_oval="true" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="@string/tas_guardian_group"
android:textColor="#FDECCB"
android:textSize="12sp" />
</LinearLayout>
</FrameLayout>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout 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"
@@ -7,24 +7,188 @@
<ImageView
android:id="@+id/bg"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitCenter"
android:src="@mipmap/dialog_live_buy_guard_bg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:src="@mipmap/dialog_live_buy_guard_bg" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="0dp"
android:layout_height="170dp"
android:layout_marginTop="70dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:itemCount="3"
tools:listitem="@layout/view_vp_live_buy_guard" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.stx.xhb.androidx.XBanner
android:id="@+id/buy_guard_banner"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginTop="40dp"
app:isAutoPlay="false"
app:isClipChildrenMode="true"
app:isClipChildrenModeLessThree="true"
app:isHandLoop="true"
app:isShowIndicatorOnlyOne="true"
app:isShowNumberIndicator="false"
app:showIndicatorInCenter="false" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="21dp"
android:text="@string/guardian_privilege"
android:textColor="#FAE3B9"
android:textSize="16sp"
android:textStyle="bold" />
<ImageView
android:layout_width="19dp"
android:layout_height="19dp"
android:layout_gravity="center_vertical|end"
android:layout_marginEnd="18dp"
android:src="@mipmap/icon_guard_rule" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/guard_privilege"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="9dp"
android:layout_marginBottom="73dp"
android:paddingEnd="9dp"
android:overScrollMode="never"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="4"
tools:itemCount="10"
tools:listitem="@layout/view_live_buy_guard_privilege_item" />
</LinearLayout>
<FrameLayout
android:id="@+id/bottom_panel"
android:layout_width="match_parent"
android:layout_height="73dp"
android:layout_gravity="bottom"
android:background="@drawable/bg_star_guard_bottom_panel"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="21dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:id="@+id/discount_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="520000"
android:textColor="#FDECCB"
android:textSize="24sp"
android:textStyle="bold" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginStart="6dp"
android:src="@mipmap/icon_diamond2" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/original_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="564000"
android:textColor="@color/white"
android:textSize="14sp" />
<TextView
android:id="@+id/discount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:text="7.1折"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout
android:layout_width="195dp"
android:layout_height="44dp"
android:layout_gravity="center_vertical|end"
android:layout_marginEnd="6dp">
<ImageView
android:id="@+id/btn_guard"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/btn_star_guard" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/guard_month_linear"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.9"
android:gravity="center">
<TextView
android:id="@+id/guard_month"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/one_month"
android:textColor="@color/white"
android:textSize="14sp" />
<ImageView
android:id="@+id/guard_arrow"
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_marginStart="5dp"
android:layout_marginTop="1dp"
android:src="@mipmap/icon_right" />
</LinearLayout>
<TextView
android:id="@+id/open_the_guard"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="@string/open_the_start_guard"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>
</FrameLayout>
</FrameLayout>
</FrameLayout>

View File

@@ -0,0 +1,213 @@
<?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="508dp">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="59dp"
android:layout_marginBottom="71dp"
android:background="@drawable/background_live_guard">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="50dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="2dp"
android:gravity="center_vertical">
<TextView
android:id="@+id/user_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用戶昵稱"
android:textColor="@color/white"
android:textSize="14sp" />
<ImageView
android:id="@+id/sex"
android:layout_width="18dp"
android:layout_height="15dp"
android:layout_marginStart="5dp"
android:src="@mipmap/icon_sex_male_1" />
<FrameLayout
android:layout_width="42dp"
android:layout_height="15dp"
android:layout_marginStart="5dp">
<ImageView
android:id="@+id/tag_king"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/icon_tag_king" />
<TextView
android:id="@+id/guard_level"
android:layout_width="20dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:layout_marginEnd="2dp"
android:gravity="center"
android:text="100"
android:textColor="@color/white"
android:textSize="10sp" />
</FrameLayout>
</LinearLayout>
<TextView
android:id="@+id/week_contribution"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="本周貢獻值"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
<FrameLayout
android:id="@+id/guardian_task"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="14dp"
android:layout_marginTop="21dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/guardian_task"
android:textColor="#E8C7F9"
android:textSize="12sp" />
<View
android:layout_width="48dp"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="#E8C7F9" />
</FrameLayout>
<FrameLayout
android:id="@+id/my_graud_grade"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginTop="21dp"
android:layout_marginEnd="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/my_graud_grade"
android:textColor="@color/white"
android:textSize="12sp" />
<View
android:layout_width="60dp"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="@color/white" />
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="7dp"
android:layout_marginTop="96dp"
android:layout_marginEnd="7dp"
android:background="@drawable/background_live_guard2">
<com.yunbao.common.custom.CommonRefreshView
android:id="@+id/refreshView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/guarding_the_anchor"
android:layout_width="240dp"
android:layout_height="141dp"
android:layout_gravity="center_horizontal|center_vertical"
android:background="@mipmap/background_guarding_the_anchor">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:layout_marginBottom="7dp"
android:text="@string/no_one_guarding_the_anchor_yet"
android:textColor="@color/white"
android:textSize="12sp" />
</FrameLayout>
</FrameLayout>
</FrameLayout>
<RelativeLayout
android:layout_width="236dp"
android:layout_height="110dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="-102dp"
android:scaleType="centerCrop">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/guard_imageView"
android:layout_width="58dp"
android:layout_height="58dp"
android:layout_centerInParent="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:scaleType="centerCrop"
android:src="@mipmap/guardian_img_wings"
android:visibility="visible"
app:riv_oval="true" />
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/gift_svga"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/guardian_img_wings"
android:visibility="visible"
app:autoPlay="true" />
</RelativeLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="71dp"
android:layout_gravity="bottom"
android:background="@drawable/background_live_guard3">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="18dp"
android:layout_marginEnd="16dp"
android:text="@string/guardian_for_your_favorite_anchor"
android:textColor="@color/white"
android:textSize="14sp" />
<ImageView
android:id="@+id/btn_guard_open"
android:layout_width="124dp"
android:layout_height="42dp"
android:layout_gravity="center_vertical|end"
android:layout_marginEnd="16dp"
android:background="@mipmap/btn_guard_open" />
</FrameLayout>
</FrameLayout>

View File

@@ -0,0 +1,124 @@
<?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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="42dp"
android:layout_marginTop="15dp">
<FrameLayout
android:layout_width="44dp"
android:layout_height="match_parent">
<ImageView
android:id="@+id/guard_number_img"
android:layout_width="19dp"
android:layout_height="19dp"
android:layout_gravity="center"
android:src="@mipmap/icon_one_guard"
android:visibility="gone" />
<TextView
android:id="@+id/guard_number_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="4"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold" />
</FrameLayout>
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/avatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:scaleType="centerCrop"
android:src="@mipmap/icon_male_default"
app:riv_oval="true" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="6dp">
<TextView
android:id="@+id/user_nicename"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用戶昵稱"
android:textColor="@color/white"
android:textSize="14sp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="2dp">
<ImageView
android:id="@+id/sex"
android:layout_width="18dp"
android:layout_height="15dp"
android:layout_marginTop="5dp"
android:src="@mipmap/icon_sex_male_1" />
<FrameLayout
android:layout_width="42dp"
android:layout_height="15dp"
android:layout_gravity="bottom"
android:layout_marginStart="6dp">
<ImageView
android:id="@+id/tag_king"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/icon_tag_king" />
<TextView
android:id="@+id/guard_level"
android:layout_width="20dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:layout_marginEnd="2dp"
android:gravity="center"
android:text="100"
android:textColor="@color/white"
android:textSize="10sp" />
</FrameLayout>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginEnd="25dp"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/contribution"
android:textColor="@color/white"
android:textSize="14sp" />
<TextView
android:id="@+id/contribution"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="contribution"
android:textColor="@color/white"
android:textSize="14sp" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</LinearLayout>