第一次提交
This commit is contained in:
190
app/src/main/res/layout/fragment_rank_view_pager.xml
Normal file
190
app/src/main/res/layout/fragment_rank_view_pager.xml
Normal file
@@ -0,0 +1,190 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="50dp"
|
||||
tools:viewBindingIgnore="true">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_topview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@drawable/bg_dingbu">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="32dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/dynamic_title_view_1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginRight="@dimen/dp16"
|
||||
android:layout_toLeftOf="@+id/dynamic_title_view_2">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dynamic_title_name_1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="魅力"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/dynamic_title_bottom_line_1"
|
||||
android:layout_width="@dimen/dp12"
|
||||
android:layout_height="@dimen/dp2"
|
||||
android:layout_below="@+id/dynamic_title_name_1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp2"
|
||||
android:layout_marginBottom="@dimen/dp2"
|
||||
android:background="@drawable/avatar_bg_white" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/dynamic_title_view_2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dynamic_title_name_2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="消费"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/dynamic_title_bottom_line_2"
|
||||
android:layout_width="@dimen/dp12"
|
||||
android:layout_height="@dimen/dp2"
|
||||
android:layout_below="@+id/dynamic_title_name_2"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp2"
|
||||
android:layout_marginBottom="@dimen/dp2"
|
||||
android:background="@drawable/avatar_bg_white" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/dynamic_title_view_3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/dp16">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dynamic_title_name_3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="守护"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/dynamic_title_bottom_line_3"
|
||||
android:layout_width="@dimen/dp12"
|
||||
android:layout_height="@dimen/dp2"
|
||||
android:layout_below="@+id/dynamic_title_name_3"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp2"
|
||||
android:layout_marginBottom="@dimen/dp2"
|
||||
android:background="@drawable/avatar_bg_white" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/dynamic_title_view_4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/dp16">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dynamic_title_name_4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="礼物"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/dynamic_title_bottom_line_4"
|
||||
android:layout_width="@dimen/dp12"
|
||||
android:layout_height="@dimen/dp2"
|
||||
android:layout_below="@+id/dynamic_title_name_4"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp2"
|
||||
android:layout_marginBottom="@dimen/dp2"
|
||||
android:background="@drawable/avatar_bg_white" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/dynamic_title_view_6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/dp16">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dynamic_title_name_6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="邀请"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/dynamic_title_bottom_line_6"
|
||||
android:layout_width="@dimen/dp12"
|
||||
android:layout_height="@dimen/dp2"
|
||||
android:layout_below="@+id/dynamic_title_name_6"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp2"
|
||||
android:layout_marginBottom="@dimen/dp2"
|
||||
android:background="@drawable/avatar_bg_white" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/dynamic_title_view_5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/dp16"
|
||||
android:layout_toRightOf="@+id/dynamic_title_view_2"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dynamic_title_name_5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="金币"
|
||||
android:textColor="@color/two_text"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/dynamic_title_bottom_line_5"
|
||||
android:layout_width="@dimen/dp12"
|
||||
android:layout_height="@dimen/dp2"
|
||||
android:layout_below="@+id/dynamic_title_name_5"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp2"
|
||||
android:layout_marginBottom="@dimen/dp2"
|
||||
android:background="@drawable/shape_rank_selector_bottom" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/dynamic_view_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/ll_topview" />
|
||||
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user