集成完直播后提交代码
This commit is contained in:
346
app/src/main/res/layout/activity_account.xml
Normal file
346
app/src/main/res/layout/activity_account.xml
Normal file
@@ -0,0 +1,346 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/main_color" />
|
||||
|
||||
<include
|
||||
android:id="@+id/action_v"
|
||||
layout="@layout/layout_action_bar" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/user_info_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingTop="@dimen/dp20"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:paddingBottom="@dimen/dp10">
|
||||
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:id="@+id/user_iv"
|
||||
android:layout_width="74dp"
|
||||
android:layout_height="74dp"
|
||||
android:src="@mipmap/player_img"
|
||||
app:es_shape_type="round" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="74dp"
|
||||
android:layout_marginStart="@dimen/dp20"
|
||||
android:layout_marginEnd="@dimen/dp40"
|
||||
android:layout_toRightOf="@id/user_iv"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/login_or_reg"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/level_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="Level: VIP Member"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="37dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/next_img" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/live_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:drawableStart="@mipmap/kaibo_imgs"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:visibility="gone"
|
||||
android:text="@string/live"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/action_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/following_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
|
||||
android:drawableStart="@mipmap/guanzhu"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/following"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reminders_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
|
||||
android:drawableStart="@mipmap/dingyue"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/reminders"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/account_security_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:drawableStart="@mipmap/zhanghuanquan"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/account_security"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/change_language_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_weight="1"
|
||||
android:drawableStart="@mipmap/yuyanqiehuan"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/change_language"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/change_language_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/zh_language"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/change_theme_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_weight="1"
|
||||
android:drawableStart="@mipmap/moshiqiehuan"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/change_theme"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/change_theme_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/light"
|
||||
android:textColor="@color/des_txt_color"
|
||||
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_us_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:drawableStart="@mipmap/about_us"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/about_us"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contact_us_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:drawableStart="@mipmap/lianxiwomen"
|
||||
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/contact_us"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/terms_of_service_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:drawableStart="@mipmap/fuwutiaokuan"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/terms_of_service"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/privacy_policy_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:drawableStart="@mipmap/yinsizhengc_img"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/privacy_policy"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/logout_bt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp30"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp_40"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/log_out"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:visibility="gone" />
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user