458 lines
21 KiB
XML
458 lines
21 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
|
|
android:id="@+id/root_layout"
|
|
android:background="@mipmap/bg_glamour_top"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/rootView"
|
|
android:background="#00FFFFFF"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/toolbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
android:minHeight="100dp"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
|
app:toolbarId="@+id/toolbar">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/bg_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="421dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/item_1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginBottom="40dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="@+id/item_2"
|
|
app:layout_constraintEnd_toStartOf="@+id/item_3"
|
|
app:layout_constraintStart_toEndOf="@+id/item_2">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="66dp"
|
|
android:layout_height="66dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:id="@+id/avatar_1"
|
|
android:layout_width="50dp"
|
|
android:src="@drawable/m_chu_xia"
|
|
android:layout_height="50dp"
|
|
android:layout_centerInParent="true"
|
|
android:scaleType="centerCrop"
|
|
app:riv_oval="true" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<com.opensource.svgaplayer.SVGAImageView
|
|
android:id="@+id/svga1"
|
|
android:layout_width="80dp"
|
|
android:layout_height="80dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginTop="10dp"
|
|
android:src="@mipmap/ic_home_rank_top_1" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="66dp"
|
|
android:layout_height="66dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<pl.droidsonroids.gif.GifImageView
|
|
android:id="@+id/liveing1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginTop="50dp"
|
|
android:src="@mipmap/icon_user_home_living"
|
|
android:visibility="invisible" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/name_1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:maxEms="4"
|
|
android:singleLine="true"
|
|
android:text=""
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="15sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/sex_1"
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/diamond1"
|
|
android:layout_width="18dp"
|
|
android:layout_height="15dp"
|
|
android:src="@mipmap/diamond"
|
|
android:visibility="invisible"
|
|
tools:visibility="visible" />
|
|
|
|
<TextView
|
|
android:id="@+id/votes_1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="5dp"
|
|
android:text=""
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
<Button
|
|
android:id="@+id/btn_follow_1"
|
|
android:layout_width="54dp"
|
|
android:layout_height="23dp"
|
|
android:background="@drawable/bg_message_msg_bar_follow"
|
|
android:text="@string/layout_home_ranking_tips1"
|
|
android:textColor="#FFFFFF"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:visibility="invisible"
|
|
android:textSize="10dp"
|
|
app:layout_constraintEnd_toStartOf="@+id/more"
|
|
app:layout_constraintTop_toTopOf="@+id/btn_back" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/item_2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="152dp"
|
|
android:layout_marginStart="25dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:layout_marginBottom="70dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/item_1"
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="66dp"
|
|
android:layout_height="66dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:id="@+id/avatar_2"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_centerInParent="true"
|
|
android:scaleType="centerCrop"
|
|
app:riv_border_color="#B6B6B6"
|
|
app:riv_border_width="2dp"
|
|
app:riv_oval="true" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<com.opensource.svgaplayer.SVGAImageView
|
|
android:id="@+id/svga2"
|
|
android:layout_width="80dp"
|
|
android:layout_height="80dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp" />
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="66dp"
|
|
android:layout_height="66dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<pl.droidsonroids.gif.GifImageView
|
|
android:id="@+id/liveing2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginTop="50dp"
|
|
android:src="@mipmap/icon_user_home_living"
|
|
android:visibility="invisible" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/name_2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:maxEms="4"
|
|
android:singleLine="true"
|
|
android:text=""
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="15sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/sex_2"
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/diamond2"
|
|
android:layout_width="18dp"
|
|
android:layout_height="15dp"
|
|
android:src="@mipmap/diamond"
|
|
android:visibility="invisible" />
|
|
|
|
<TextView
|
|
android:id="@+id/votes_2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="5dp"
|
|
android:text=""
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/btn_follow_2"
|
|
android:layout_width="54dp"
|
|
android:layout_height="23dp"
|
|
android:background="@drawable/bg_message_msg_bar_follow"
|
|
android:text="@string/layout_home_ranking_tips1"
|
|
android:textColor="#FFFFFF"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:visibility="invisible"
|
|
android:textSize="10dp"
|
|
app:layout_constraintEnd_toStartOf="@+id/more"
|
|
app:layout_constraintTop_toTopOf="@+id/btn_back" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/item_3"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="25dp"
|
|
android:layout_marginBottom="60dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/item_1">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="66dp"
|
|
android:layout_height="66dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
android:id="@+id/avatar_3"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_centerInParent="true"
|
|
android:scaleType="centerCrop"
|
|
app:riv_border_color="#B6B6B6"
|
|
app:riv_border_width="2dp"
|
|
app:riv_oval="true" />
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<com.opensource.svgaplayer.SVGAImageView
|
|
android:id="@+id/svga3"
|
|
android:layout_width="80dp"
|
|
android:layout_height="80dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp" />
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="66dp"
|
|
android:layout_height="66dp"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<pl.droidsonroids.gif.GifImageView
|
|
android:id="@+id/liveing3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginTop="50dp"
|
|
android:src="@mipmap/icon_user_home_living"
|
|
android:visibility="invisible" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/name_3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:maxEms="4"
|
|
android:singleLine="true"
|
|
android:text=""
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="15sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/sex_3"
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/diamond3"
|
|
android:layout_width="18dp"
|
|
android:layout_height="16dp"
|
|
android:src="@mipmap/diamond"
|
|
android:visibility="invisible" />
|
|
|
|
<TextView
|
|
android:id="@+id/votes_3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="5dp"
|
|
android:text=""
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/btn_follow_3"
|
|
android:layout_width="54dp"
|
|
android:layout_height="23dp"
|
|
android:background="@drawable/bg_message_msg_bar_follow"
|
|
android:text="@string/layout_home_ranking_tips1"
|
|
android:textColor="#FFFFFF"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:visibility="invisible"
|
|
android:textSize="10dp"
|
|
app:layout_constraintEnd_toStartOf="@+id/more"
|
|
app:layout_constraintTop_toTopOf="@+id/btn_back" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
<io.rong.imkit.widget.refresh.SmartRefreshLayout
|
|
android:id="@+id/swipeRefreshLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
android:background="@drawable/background_white_up"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="-5dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.yanzhenjie.recyclerview.SwipeRecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:itemCount="5"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
app:spanCount="2"
|
|
tools:listitem="@layout/item_home_recommend" />
|
|
</io.rong.imkit.widget.refresh.SmartRefreshLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |