249 lines
9.3 KiB
XML
249 lines
9.3 KiB
XML
<?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">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="50dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dsadada"
|
|
android:layout_width="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="2dp"
|
|
android:gravity="center">
|
|
|
|
<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:scaleType="fitXY"
|
|
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_centerInParent="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/dsadada"
|
|
android:text="本周貢獻值"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp" />
|
|
</RelativeLayout>
|
|
|
|
<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:id="@+id/guardian_task_view"
|
|
android:layout_width="50dp"
|
|
android:layout_height="1dp"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="71dp"
|
|
android:layout_gravity="bottom"
|
|
android:background="@drawable/background_live_guard3">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/guard_hint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:gravity="start"
|
|
android:text="@string/guardian_for_your_favorite_anchor"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/guard_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:gravity="start"
|
|
android:text="@string/guardian_for_your_favorite_anchor"
|
|
android:textColor="@color/white"
|
|
android:textSize="11sp" />
|
|
</LinearLayout>
|
|
|
|
|
|
<TextView
|
|
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"
|
|
android:gravity="center"
|
|
android:text="續費守護"
|
|
android:textColor="@color/white"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</FrameLayout> |