157 lines
6.5 KiB
XML
157 lines
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@mipmap/iv_homefragment_bg"
|
|
tools:context=".ui.activity.home.VTHomeFragment">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/layout_head"
|
|
android:layout_width="@dimen/dp_80"
|
|
android:layout_height="@dimen/dp_80"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_marginTop="@dimen/dp_93"
|
|
android:background="@drawable/bg_circle_headdefault_vt"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_head"
|
|
android:layout_width="@dimen/dp_78"
|
|
android:layout_height="@dimen/dp_78"
|
|
android:layout_gravity="center"
|
|
android:background="@mipmap/ic_default_head" />
|
|
</FrameLayout>
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_me_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="@dimen/sp_15"
|
|
app:layout_constraintStart_toEndOf="@+id/layout_head"
|
|
app:layout_constraintTop_toTopOf="@+id/layout_head" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_me_id"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:textColor="@color/color_d2d2d2"
|
|
android:textSize="@dimen/sp_12"
|
|
app:layout_constraintStart_toStartOf="@+id/tv_me_name"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_me_name" />
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/layout_playlist"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_marginTop="@dimen/dp_18"
|
|
android:layout_marginEnd="@dimen/dp_15"
|
|
android:background="@drawable/cornor_1affffff_12dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_head">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_me_playlist"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_10"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:drawableStart="@mipmap/ic_playlist"
|
|
android:drawablePadding="@dimen/dp_9"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/tabme_playlist"
|
|
android:textColor="#e6ffffff"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintStart_toEndOf="@+id/layout_head"
|
|
app:layout_constraintTop_toTopOf="@+id/layout_head" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerview_history"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_15"
|
|
android:layout_marginBottom="@dimen/dp_15" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_marginTop="@dimen/dp_18"
|
|
android:layout_marginEnd="@dimen/dp_15"
|
|
android:background="@drawable/cornor_1affffff_12dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_playlist">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_private_policy"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:drawableStart="@mipmap/ic_me_private_policy"
|
|
android:drawablePadding="@dimen/dp_9"
|
|
android:gravity="center_vertical"
|
|
android:padding="@dimen/dp_10"
|
|
android:drawableEnd="@mipmap/ic_enter"
|
|
android:text="@string/tabme_private_policy"
|
|
android:textColor="#e6ffffff"
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_user_agreement"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
|
|
android:drawableStart="@mipmap/ic_me_user_agreement"
|
|
android:drawablePadding="@dimen/dp_9"
|
|
android:gravity="center_vertical"
|
|
android:padding="@dimen/dp_10"
|
|
android:drawableEnd="@mipmap/ic_enter"
|
|
android:text="@string/tabme_user_agreement"
|
|
android:textColor="#e6ffffff"
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_about_us"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawableStart="@mipmap/ic_me_about_us"
|
|
android:drawablePadding="@dimen/dp_9"
|
|
android:gravity="center_vertical"
|
|
android:padding="@dimen/dp_10"
|
|
android:text="@string/tabme_version"
|
|
android:textColor="#e6ffffff"
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="@dimen/dp_9"
|
|
android:layout_alignParentEnd="true"
|
|
android:padding="@dimen/dp_10"
|
|
android:text="v1.0"
|
|
android:textColor="#e6ffffff"
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |