集成完直播后提交代码
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>
|
||||
182
app/src/main/res/layout/activity_account_info.xml
Normal file
182
app/src/main/res/layout/activity_account_info.xml
Normal file
@@ -0,0 +1,182 @@
|
||||
<?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 layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/user_info_ry"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_margin="@dimen/dp10">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="86dp"
|
||||
android:id="@+id/head_ly"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/avatar"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/user_iv"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
app:es_shape_type="round"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="37dp"
|
||||
android:src="@mipmap/next_img"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_alignParentEnd="true" />
|
||||
</LinearLayout>
|
||||
<View android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/nickname_ly"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/nickname"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:id="@+id/nickname_tv"
|
||||
android:text=""
|
||||
android:gravity="center_vertical"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/username"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:id="@+id/username_tv"
|
||||
android:text=""
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/change_phone_ly"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/change_phone"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:id="@+id/change_phone_tv"
|
||||
android:text=""
|
||||
android:gravity="center_vertical"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:text="@string/change_password_dialog"
|
||||
android:id="@+id/change_pass_tv"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
78
app/src/main/res/layout/activity_account_security.xml
Normal file
78
app/src/main/res/layout/activity_account_security.xml
Normal file
@@ -0,0 +1,78 @@
|
||||
<?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 layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/change_phone_ly"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/change_phone"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:id="@+id/change_language_tv"
|
||||
android:text=""
|
||||
android:gravity="center_vertical"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:text="@string/change_password_dialog"
|
||||
android:id="@+id/change_pass_tv"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
82
app/src/main/res/layout/activity_change_nickname.xml
Normal file
82
app/src/main/res/layout/activity_change_nickname.xml
Normal file
@@ -0,0 +1,82 @@
|
||||
<?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 layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
|
||||
<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:padding="@dimen/dp10">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/nickname"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:id="@+id/user_name_tips_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:hint="@string/nickname_placeholder"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="15"
|
||||
android:lines="1"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/nickname_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp30"
|
||||
android:text="@string/preservation"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:id="@+id/action_bt"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
227
app/src/main/res/layout/activity_change_password.xml
Normal file
227
app/src/main/res/layout/activity_change_password.xml
Normal file
@@ -0,0 +1,227 @@
|
||||
<?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 layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
|
||||
<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:padding="@dimen/dp10">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/phone"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:id="@+id/user_name_tips_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:hint="@string/rule_phone"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:visibility="gone"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="20"
|
||||
android:lines="1"
|
||||
android:id="@+id/user_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/phone_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:visibility="gone"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/area_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/area_iv"
|
||||
android:layout_width="@dimen/dp30"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@mipmap/yuenan"/>
|
||||
<TextView
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:gravity="center"
|
||||
android:id="@+id/area_tv"
|
||||
android:text="+60"
|
||||
android:drawableEnd="@mipmap/xiala_img"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/phone_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:background="@null"
|
||||
android:hint="@string/rule_phone"
|
||||
android:inputType="phone"
|
||||
android:lines="1"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/phone_code"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/phone_code_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/phone_code_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:background="@null"
|
||||
android:hint="@string/rule_phone_code"
|
||||
android:inputType="number"
|
||||
android:lines="1"
|
||||
android:maxLength="6"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/get_sms_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:text="@string/get_phone_code_txt"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/new_password"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:hint="@string/password_length"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="20"
|
||||
android:lines="1"
|
||||
android:inputType="textPassword"
|
||||
android:id="@+id/password_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/confirm_password"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:hint="@string/password_length"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="20"
|
||||
android:lines="1"
|
||||
android:inputType="textPassword"
|
||||
android:id="@+id/password_et1"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp30"
|
||||
android:text="@string/change_password"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:id="@+id/action_bt"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
193
app/src/main/res/layout/activity_change_phone.xml
Normal file
193
app/src/main/res/layout/activity_change_phone.xml
Normal file
@@ -0,0 +1,193 @@
|
||||
<?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 layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
<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:padding="@dimen/dp10">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/current_mobile_phone"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:id="@+id/user_name_tips_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:hint="@string/rule_phone"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="20"
|
||||
android:lines="1"
|
||||
android:id="@+id/user_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/new_phone_number"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/phone_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/area_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/area_iv"
|
||||
android:layout_width="@dimen/dp30"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@mipmap/yuenan"/>
|
||||
<TextView
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:gravity="center"
|
||||
android:id="@+id/area_tv"
|
||||
android:text="+60"
|
||||
android:drawableEnd="@mipmap/xiala_img"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/phone_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:background="@null"
|
||||
android:hint="@string/rule_phone"
|
||||
android:inputType="phone"
|
||||
android:lines="1"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/code_tops_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/code"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/phone_code"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/phone_code_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:background="@drawable/card_bantou_bg">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/phone_code_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:background="@null"
|
||||
android:hint="@string/rule_phone_code"
|
||||
android:inputType="number"
|
||||
android:lines="1"
|
||||
android:maxLength="6"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/get_sms_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:text="@string/get_phone_code_txt"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/action_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:background="@drawable/button_ture_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/change_phone"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
82
app/src/main/res/layout/activity_follow.xml
Normal file
82
app/src/main/res/layout/activity_follow.xml
Normal file
@@ -0,0 +1,82 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/refreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:srlAccentColor="@color/main_color">
|
||||
|
||||
<com.xyz.babelive.ui.view.BezierCircleHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/nodate_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp200"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/follow_nodata" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wdbd_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/no_data"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<com.scwang.smart.refresh.footer.BallPulseFooter
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:srlAccentColor="@color/des_txt_color" />
|
||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
194
app/src/main/res/layout/activity_game_ali.xml
Normal file
194
app/src/main/res/layout/activity_game_ali.xml
Normal file
@@ -0,0 +1,194 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:fitsSystemWindows="false"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/tops_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/video_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.aliyun.player.videoview.AliDisplayView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/main_color"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:scaleType="centerInside"
|
||||
android:id="@+id/full_iv"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:src="@mipmap/full_img"/>
|
||||
<ImageView
|
||||
android:id="@+id/cover_iv"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/zanwei"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/xiabo_ly"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/st"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_below="@id/st"
|
||||
android:gravity="center"
|
||||
android:text="@string/not_yet_broadcasted"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="18sp"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:text="@string/recommended_live"
|
||||
android:textColor="#ffffffff"
|
||||
android:id="@+id/rec_tv"
|
||||
android:visibility="invisible"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/tab_rv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="88dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:id="@+id/standard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/standard"
|
||||
android:orientation="horizontal">
|
||||
<include
|
||||
android:id="@+id/action_v"
|
||||
layout="@layout/layout_action_bar1" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_below="@id/tops_ry"
|
||||
android:id="@+id/mid_cy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cameraView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="10dp"
|
||||
app:cardBackgroundColor="@color/main_color"
|
||||
app:cardCornerRadius="@dimen/dp5"
|
||||
app:cardElevation="@dimen/dp0"
|
||||
app:layout_constraintDimensionRatio="1080:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:id="@+id/mid_ly"
|
||||
android:layout_below="@id/mid_cy"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tablayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="44dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/transparent"
|
||||
app:tabBackground="@color/transparent"
|
||||
app:tabIndicator="@drawable/tab_line1"
|
||||
app:tabIndicatorColor="@color/text_true_color"
|
||||
app:tabIndicatorHeight="2dp"
|
||||
app:tabMode="fixed"
|
||||
app:tabPaddingBottom="3dp"
|
||||
app:tabPaddingEnd="0dp"
|
||||
app:tabPaddingStart="0dp"
|
||||
app:tabMinWidth="@dimen/dp180"
|
||||
app:tabMaxWidth="@dimen/dp180"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabSelectedTextColor="@color/body_txt_color"
|
||||
app:tabTextAppearance="@style/MyBgTablayoutstyle"
|
||||
app:tabTextColor="@color/text_false_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_below="@id/mid_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="1dp"
|
||||
android:overScrollMode="never">
|
||||
|
||||
</androidx.viewpager2.widget.ViewPager2>
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
212
app/src/main/res/layout/activity_game_ali_portrait.xml
Normal file
212
app/src/main/res/layout/activity_game_ali_portrait.xml
Normal file
@@ -0,0 +1,212 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:fitsSystemWindows="false"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.aliyun.player.videoview.AliDisplayView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/main_color" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:id="@+id/cover_iv"
|
||||
android:src="@mipmap/background_push"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
<LinearLayout
|
||||
android:id="@+id/user_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:id="@+id/user_iv"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:src="@mipmap/player_img"
|
||||
app:es_shape_type="round" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:lines="1"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/colose_iv"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:src="@mipmap/dialog_colose" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/main_content"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="400dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tios_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:text="@string/room_notice"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp14" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/tios_tv"
|
||||
android:layout_marginBottom="@dimen/dp80"
|
||||
android:layout_weight="1"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/pin_iv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp40"
|
||||
android:src="@mipmap/pin_fill"
|
||||
android:visibility="gone" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/pin_big_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp40"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/card_bord_org_bg"
|
||||
android:padding="@dimen/dp5"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pin_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableStart="@mipmap/pinsmall"
|
||||
android:drawablePadding="@dimen/dp5"
|
||||
android:text="@string/app_name"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="@dimen/sp12" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pin_colose"
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="-5dp"
|
||||
android:layout_marginEnd="-5dp"
|
||||
android:gravity="center"
|
||||
android:text="X"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp12" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pin_des"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/pin_title"
|
||||
android:layout_marginTop="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="@dimen/sp12" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp80"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp35"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_bantou_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="@string/send_message"
|
||||
android:maxLength="50"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp14" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/send_bt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:src="@mipmap/send_imgs" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
142
app/src/main/res/layout/activity_game_qs.xml
Normal file
142
app/src/main/res/layout/activity_game_qs.xml
Normal file
@@ -0,0 +1,142 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:fitsSystemWindows="false"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/tops_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/video_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- <org.song.videoplayer.DemoQSVideoView-->
|
||||
<!-- android:id="@+id/video"-->
|
||||
<!-- android:layout_width="0dp"-->
|
||||
<!-- android:layout_height="0dp"-->
|
||||
<!-- android:background="@color/main_color"-->
|
||||
<!-- app:layout_constraintDimensionRatio="1920:1080"-->
|
||||
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
|
||||
<!-- app:layout_constraintRight_toRightOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="parent"/>-->
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:scaleType="centerInside"
|
||||
android:id="@+id/full_iv"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:src="@mipmap/full_img"/>
|
||||
<ImageView
|
||||
android:id="@+id/cover_iv"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/zanwei"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:id="@+id/standard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/standard"
|
||||
android:orientation="horizontal">
|
||||
<include
|
||||
android:id="@+id/action_v"
|
||||
layout="@layout/layout_action_bar1" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_below="@id/tops_ry"
|
||||
android:id="@+id/mid_cy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cameraView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="10dp"
|
||||
app:cardBackgroundColor="@color/main_color"
|
||||
app:cardCornerRadius="@dimen/dp5"
|
||||
app:cardElevation="@dimen/dp0"
|
||||
app:layout_constraintDimensionRatio="1080:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:id="@+id/mid_ly"
|
||||
android:layout_below="@id/mid_cy"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tablayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="44dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/transparent"
|
||||
app:tabBackground="@color/transparent"
|
||||
app:tabIndicator="@drawable/tab_line1"
|
||||
app:tabIndicatorColor="@color/text_true_color"
|
||||
app:tabIndicatorHeight="2dp"
|
||||
app:tabMode="fixed"
|
||||
app:tabPaddingBottom="3dp"
|
||||
app:tabPaddingEnd="0dp"
|
||||
app:tabPaddingStart="0dp"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabSelectedTextColor="@color/body_txt_color"
|
||||
app:tabTextAppearance="@style/MyBgTablayoutstyle"
|
||||
app:tabTextColor="@color/text_false_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_below="@id/mid_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="1dp"
|
||||
android:overScrollMode="never">
|
||||
|
||||
</androidx.viewpager2.widget.ViewPager2>
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
144
app/src/main/res/layout/activity_game_web.xml
Normal file
144
app/src/main/res/layout/activity_game_web.xml
Normal file
@@ -0,0 +1,144 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:fitsSystemWindows="false"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/tops_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/video_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.tencent.smtt.sdk.WebView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/main_color"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:scaleType="centerInside"
|
||||
android:id="@+id/full_iv"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:src="@mipmap/full_img"/>
|
||||
<ImageView
|
||||
android:id="@+id/cover_iv"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/zanwei"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:id="@+id/standard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/standard"
|
||||
android:orientation="horizontal">
|
||||
<include
|
||||
android:id="@+id/action_v"
|
||||
layout="@layout/layout_action_bar1" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_below="@id/tops_ry"
|
||||
android:id="@+id/mid_cy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cameraView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="10dp"
|
||||
app:cardBackgroundColor="@color/main_color"
|
||||
app:cardCornerRadius="@dimen/dp5"
|
||||
app:cardElevation="@dimen/dp0"
|
||||
app:layout_constraintDimensionRatio="1080:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:id="@+id/mid_ly"
|
||||
android:layout_below="@id/mid_cy"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tablayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="44dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/transparent"
|
||||
app:tabBackground="@color/transparent"
|
||||
app:tabIndicator="@drawable/tab_line1"
|
||||
app:tabIndicatorColor="@color/text_true_color"
|
||||
app:tabIndicatorHeight="2dp"
|
||||
app:tabMode="fixed"
|
||||
app:tabPaddingBottom="3dp"
|
||||
app:tabPaddingEnd="0dp"
|
||||
app:tabPaddingStart="0dp"
|
||||
app:tabMinWidth="@dimen/dp180"
|
||||
app:tabMaxWidth="@dimen/dp180"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabSelectedTextColor="@color/body_txt_color"
|
||||
app:tabTextAppearance="@style/MyBgTablayoutstyle"
|
||||
app:tabTextColor="@color/text_false_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_below="@id/mid_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="1dp"
|
||||
android:overScrollMode="never">
|
||||
|
||||
</androidx.viewpager2.widget.ViewPager2>
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
39
app/src/main/res/layout/activity_h5_web.xml
Normal file
39
app/src/main/res/layout/activity_h5_web.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:fitsSystemWindows="false">
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/main_color"
|
||||
android:id="@+id/standard"/>
|
||||
|
||||
<WebView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/standard"
|
||||
android:id="@+id/webview"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/standard"
|
||||
android:orientation="horizontal">
|
||||
<include layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
166
app/src/main/res/layout/activity_live.xml
Normal file
166
app/src/main/res/layout/activity_live.xml
Normal file
@@ -0,0 +1,166 @@
|
||||
<?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">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<ImageView
|
||||
android:id="@+id/cover_iv"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@color/bantou_bg_color"
|
||||
app:layout_constraintDimensionRatio="345:196"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp28"
|
||||
android:id="@+id/cover_tv"
|
||||
android:gravity="center"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
android:paddingStart="@dimen/dp15"
|
||||
android:paddingEnd="@dimen/dp15"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/card_bord_bantou_bg"
|
||||
android:text="@string/set_fengmian_txt"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent">
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<include
|
||||
android:id="@+id/action_v"
|
||||
layout="@layout/layout_action_bar1" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_weight="1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/room_title"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:lines="1"
|
||||
android:id="@+id/title_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/notice"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:lines="3"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:padding="@dimen/dp10"
|
||||
android:gravity="top"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:id="@+id/des_et"
|
||||
android:maxLength="50"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/event_category"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:id="@+id/tagsrv"/>
|
||||
|
||||
|
||||
</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/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp40"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/live"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
299
app/src/main/res/layout/activity_login.xml
Normal file
299
app/src/main/res/layout/activity_login.xml
Normal file
@@ -0,0 +1,299 @@
|
||||
<?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/main_color"
|
||||
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 layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp1"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/dp10">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/sign_in"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textStyle="bold"
|
||||
android:textSize="24sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/username"
|
||||
android:id="@+id/user_name_tips_tv"
|
||||
android:layout_marginTop="@dimen/dp40"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:hint="@string/rule_username"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="20"
|
||||
android:lines="1"
|
||||
android:id="@+id/user_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/phone"
|
||||
android:id="@+id/phone_tips_tv"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/phone_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
android:background="@drawable/card_bantou_bg">
|
||||
<LinearLayout
|
||||
android:id="@+id/area_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/area_iv"
|
||||
android:layout_width="@dimen/dp30"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@mipmap/yuenan"/>
|
||||
<TextView
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:gravity="center"
|
||||
android:id="@+id/area_tv"
|
||||
android:text="+60"
|
||||
android:drawableEnd="@mipmap/xiala_img"/>
|
||||
</LinearLayout>
|
||||
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:hint="@string/rule_phone"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="20"
|
||||
android:lines="1"
|
||||
android:inputType="phone"
|
||||
android:id="@+id/phone_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@null"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/password"
|
||||
android:id="@+id/password_tips_tv"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:hint="@string/rule_password"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:maxLength="20"
|
||||
android:lines="1"
|
||||
android:inputType="textPassword"
|
||||
android:id="@+id/password_et"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/code_tops_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/code"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<RelativeLayout
|
||||
android:id="@+id/code_ry"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg">
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:hint="@string/rule_code"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:lines="1"
|
||||
android:id="@+id/code_et"
|
||||
android:background="@null"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/image_v"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_centerVertical="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/phone_code"
|
||||
android:id="@+id/phone_code_tips_tv"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:visibility="gone"
|
||||
android:id="@+id/phone_code_ry"
|
||||
android:background="@drawable/card_bantou_bg">
|
||||
<EditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:hint="@string/rule_phone_code"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:lines="1"
|
||||
android:inputType="number"
|
||||
android:id="@+id/phone_code_et"
|
||||
android:maxLength="6"
|
||||
android:singleLine="true"
|
||||
android:background="@null"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/get_phone_code_txt"
|
||||
android:id="@+id/get_sms_tv"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/phone_login"
|
||||
android:id="@+id/change_login_type_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/forgot_password"
|
||||
android:id="@+id/forgot_password_tv"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp30"
|
||||
android:text="@string/sign_in"
|
||||
android:id="@+id/login_bt"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/login_sign_in_bottom"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/dp30"
|
||||
android:id="@+id/to_reg_tv"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
102
app/src/main/res/layout/activity_main.xml
Normal file
102
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,102 @@
|
||||
<?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>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/bog_bg_ly"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/main_color" />
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"/>
|
||||
</LinearLayout>
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewPager"
|
||||
android:layout_below="@id/bog_bg_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="?actionBarSize"
|
||||
android:layout_weight="1">
|
||||
|
||||
</androidx.viewpager2.widget.ViewPager2>
|
||||
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/st"
|
||||
android:background="@color/main_color" />
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:background="@color/main_color"
|
||||
android:layout_below="@id/st"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
<ImageView
|
||||
android:layout_width="130dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/logo_left" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/user_iv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@mipmap/user_img" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/message_iv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_toLeftOf="@id/user_iv"
|
||||
android:src="@mipmap/home_message" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/live_iv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:visibility="gone"
|
||||
android:layout_toLeftOf="@id/message_iv"
|
||||
android:src="@mipmap/kaibo_img" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:id="@+id/nav_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginEnd="0dp"
|
||||
android:background="@color/main_color1"
|
||||
app:itemBackground="@null"
|
||||
app:itemIconSize="@dimen/dp28"
|
||||
app:itemTextColor="@color/select_color"
|
||||
app:labelVisibilityMode="labeled"
|
||||
app:menu="@menu/bottom_nav_menu" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
57
app/src/main/res/layout/activity_notice.xml
Normal file
57
app/src/main/res/layout/activity_notice.xml
Normal file
@@ -0,0 +1,57 @@
|
||||
<?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 layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/nodate_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="@dimen/dp200"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/noti_nodata" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wdbd_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/no_announcements"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
45
app/src/main/res/layout/activity_notice_info.xml
Normal file
45
app/src/main/res/layout/activity_notice_info.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/main_color"
|
||||
android:fitsSystemWindows="false">
|
||||
<com.xyz.babelive.ui.view.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/main_color"
|
||||
android:id="@+id/standard"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/actio_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/standard"
|
||||
android:orientation="horizontal">
|
||||
<include layout="@layout/layout_action_bar"
|
||||
android:id="@+id/action_v"/>
|
||||
</LinearLayout>
|
||||
<View android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp1"
|
||||
android:background="@color/line_color"
|
||||
android:layout_below="@id/actio_ly"
|
||||
android:id="@+id/lines1"/>
|
||||
<WebView
|
||||
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/lines1"
|
||||
android:id="@+id/webview"/>
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
299
app/src/main/res/layout/activity_reg.xml
Normal file
299
app/src/main/res/layout/activity_reg.xml
Normal file
@@ -0,0 +1,299 @@
|
||||
<?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: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" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp1"
|
||||
android:background="@color/line_color" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/main_color">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/dp10">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/register"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp40"
|
||||
android:text="@string/phone"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/phone_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/area_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/area_iv"
|
||||
android:layout_width="@dimen/dp30"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@mipmap/yuenan"/>
|
||||
<TextView
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:gravity="center"
|
||||
android:id="@+id/area_tv"
|
||||
android:text="+60"
|
||||
android:drawableEnd="@mipmap/xiala_img"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/phone_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:background="@null"
|
||||
android:hint="@string/rule_phone"
|
||||
android:inputType="phone"
|
||||
android:lines="1"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/code_tops_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/code"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/code_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
android:visibility="gone">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/code_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:background="@null"
|
||||
android:hint="@string/rule_code"
|
||||
android:lines="1"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_v"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/dp10" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/phone_code"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/phone_code_ry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/phone_code_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:background="@null"
|
||||
android:hint="@string/rule_phone_code"
|
||||
android:inputType="number"
|
||||
android:lines="1"
|
||||
android:maxLength="6"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/get_sms_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:text="@string/get_phone_code_txt"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/username"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/user_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
android:hint="@string/username_placeholder"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/nickname"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/nickname_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
android:hint="@string/nickname_placeholder"
|
||||
android:lines="1"
|
||||
android:maxLength="20"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/password_tips_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp20"
|
||||
android:text="@string/password"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp8"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
android:hint="@string/rule_password"
|
||||
android:inputType="textPassword"
|
||||
android:lines="1"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp52"
|
||||
android:layout_marginTop="@dimen/dp30"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:id="@+id/reg_bt"
|
||||
android:text="@string/register"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/to_reg_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/dp30"
|
||||
android:text="@string/login_reg_in_bottom"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
<!---->
|
||||
</layout>
|
||||
78
app/src/main/res/layout/activity_reminder.xml
Normal file
78
app/src/main/res/layout/activity_reminder.xml
Normal file
@@ -0,0 +1,78 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/refreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:srlAccentColor="@color/main_color">
|
||||
|
||||
<com.xyz.babelive.ui.view.BezierCircleHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/nodate_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp200"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/yuyue_nodata" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wdbd_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/no_data"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
31
app/src/main/res/layout/activity_start_up.xml
Normal file
31
app/src/main/res/layout/activity_start_up.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/show_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ui.activity.StartUpActivity">
|
||||
<RelativeLayout
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="300dp"
|
||||
android:layout_centerInParent="true">
|
||||
<com.xyz.babelive.utils.BabeLiveRingLoadingView
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="300dp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
41
app/src/main/res/layout/chat_item_child.xml
Normal file
41
app/src/main/res/layout/chat_item_child.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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_content1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_margin="@dimen/dp10">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp30"
|
||||
android:layout_height="@dimen/dp30"
|
||||
android:id="@+id/user_iv"
|
||||
app:es_shape_type="round"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:src="@mipmap/player_img"/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/card_bord_bantou_bg1"
|
||||
android:padding="@dimen/dp5"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/user_name_tv"
|
||||
android:textColor="@color/chat_mssage_user_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/user_txt_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
125
app/src/main/res/layout/dialog_anchor.xml
Normal file
125
app/src/main/res/layout/dialog_anchor.xml
Normal file
@@ -0,0 +1,125 @@
|
||||
<?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">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/main_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/dialog_bg"
|
||||
android:orientation="vertical">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="@string/anchor"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="18sp"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:id="@+id/colose_iv"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:src="@mipmap/dialog_colose"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"/>
|
||||
</RelativeLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/dp10"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:id="@+id/user_iv"
|
||||
android:src="@mipmap/player_img"
|
||||
app:es_shape_type="round"/>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/name_tv"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="18sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:layout_below="@id/name_tv"
|
||||
android:id="@+id/fubiaoti_tv"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/follow_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="26dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@drawable/card_bord_org_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/follow"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="@dimen/dp10">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/biaoti_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp1"
|
||||
android:background="@color/line_color"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Notice:"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/dp10"
|
||||
android:id="@+id/des_tv"
|
||||
android:lineSpacingExtra="@dimen/dp2"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
</layout>
|
||||
262
app/src/main/res/layout/dialog_change_language.xml
Normal file
262
app/src/main/res/layout/dialog_change_language.xml
Normal file
@@ -0,0 +1,262 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/dialog_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:orientation="vertical">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="@string/change_language"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="18sp"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:id="@+id/colose_iv"
|
||||
android:src="@mipmap/dialog_colose"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"/>
|
||||
</RelativeLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/ew_ly"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/en"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="English"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/ew_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/zh_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/zh"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="简体中文"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/zw_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:visibility="gone"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/ft_ly"
|
||||
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:visibility="gone"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/tw"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="繁體中文"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/tw_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/ml_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/my"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Bahasa Melayu"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/ml_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/yn_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/vi"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Tiếng Việt"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/yn_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/gm_ly"
|
||||
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/kh"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="ខ្មែរ"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/gm_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:clickable="false"
|
||||
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
143
app/src/main/res/layout/dialog_change_theme.xml
Normal file
143
app/src/main/res/layout/dialog_change_theme.xml
Normal file
@@ -0,0 +1,143 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/dialog_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:orientation="vertical">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="@string/change_theme"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:id="@+id/colose_iv"
|
||||
android:src="@mipmap/dialog_colose"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"/>
|
||||
</RelativeLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/gsxt_ly"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/sunmoon"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/follow_system"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/gsxt_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/qsms_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/rjms"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/light"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/qsms_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/ssms_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/yjms"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/dark"
|
||||
android:gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:layout_marginStart="10dp"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<CheckBox
|
||||
android:id="@+id/ssms_switch"
|
||||
style="@style/settings_item_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
|
||||
android:button="@drawable/main_more_switch_msgtone_checkbtn"
|
||||
android:checked="false" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
42
app/src/main/res/layout/dialog_inputmessage.xml
Normal file
42
app/src/main/res/layout/dialog_inputmessage.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp60"
|
||||
android:background="@color/main_color"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/message_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp40"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/card_bord_bantou_bg1"
|
||||
android:hint="@string/send_message"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLength="50"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp14" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/send_bt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp40"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/send"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
77
app/src/main/res/layout/follow_user_child_item.xml
Normal file
77
app/src/main/res/layout/follow_user_child_item.xml
Normal file
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout 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_content1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:background="@drawable/card_bord_bantou_bg1"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/dp10">
|
||||
<RelativeLayout
|
||||
android:layout_width="58dp"
|
||||
android:layout_height="62dp">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:id="@+id/user_iv"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="@dimen/dp1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:src="@mipmap/player_img"
|
||||
app:es_shape_type="round" />
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/live_tag"
|
||||
android:visibility="gone"
|
||||
android:src="@mipmap/live_float_img"/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<!-- anchorIsLiving-->
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="62dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:lines="1"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/fubiaoti_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/follow_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="26dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@drawable/card_bord_org_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/cancel_follow_confirm_title"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
139
app/src/main/res/layout/fragment_chat.xml
Normal file
139
app/src/main/res/layout/fragment_chat.xml
Normal file
@@ -0,0 +1,139 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/main_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tios_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:text="@string/room_notice"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp14" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/tios_tv"
|
||||
android:layout_marginBottom="@dimen/dp80"
|
||||
android:layout_weight="1"
|
||||
android:scrollbars="none" />
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/pin_fill"
|
||||
android:layout_below="@id/tios_tv"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:visibility="gone"
|
||||
android:id="@+id/pin_iv"/>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/tios_tv"
|
||||
android:id="@+id/pin_big_ry"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginStart="@dimen/dp_40"
|
||||
android:padding="@dimen/dp5"
|
||||
android:visibility="gone"
|
||||
android:background="@drawable/card_bord_org_bg">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/sp12"
|
||||
android:id="@+id/pin_title"
|
||||
android:drawablePadding="@dimen/dp5"
|
||||
android:drawableStart="@mipmap/pinsmall"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:text="@string/app_name"/>
|
||||
<TextView
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:gravity="center"
|
||||
android:id="@+id/pin_colose"
|
||||
android:textSize="@dimen/sp12"
|
||||
android:layout_marginTop="-5dp"
|
||||
android:layout_marginEnd="-5dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:text="X"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/sp12"
|
||||
android:id="@+id/pin_des"
|
||||
android:layout_below="@id/pin_title"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:layout_marginTop="10dp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp80"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp60"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/main_color"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp40"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/card_bord_bantou_bg1"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="@string/send_message"
|
||||
android:maxLength="50"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp14" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/send_bt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp40"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:background="@drawable/button_ture_bg"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/send"
|
||||
android:textColor="@color/white"
|
||||
android:textColorHint="@color/des_txt_color"
|
||||
android:textSize="@dimen/sp16" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</layout>
|
||||
149
app/src/main/res/layout/fragment_game_info.xml
Normal file
149
app/src/main/res/layout/fragment_game_info.xml
Normal file
@@ -0,0 +1,149 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/main_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="进行中"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:lines="1"
|
||||
android:id="@+id/time_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:layout_height="wrap_content">
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="@dimen/dp20"
|
||||
android:id="@+id/game_iv"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:src="@color/main_color"
|
||||
app:es_shape_type="round"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/live_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="@dimen/dp4"
|
||||
android:layout_toRightOf="@id/game_iv"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_below="@id/live_name">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp60"
|
||||
android:layout_height="@dimen/dp60"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/zhudui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/zhudu_tv"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:layout_marginTop="@dimen/dp6"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="进行中"
|
||||
android:lines="1"
|
||||
android:id="@+id/status_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="VS"
|
||||
android:lines="1"
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/jieguo_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp60"
|
||||
android:layout_height="@dimen/dp60"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/kedui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/kedui_tv"
|
||||
android:layout_marginTop="@dimen/dp6"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</layout>
|
||||
113
app/src/main/res/layout/fragment_game_userinfo.xml
Normal file
113
app/src/main/res/layout/fragment_game_userinfo.xml
Normal file
@@ -0,0 +1,113 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/main_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/dp10"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:id="@+id/user_iv"
|
||||
android:src="@mipmap/player_img"
|
||||
app:es_shape_type="round"/>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/name_tv"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="18sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:layout_below="@id/name_tv"
|
||||
android:id="@+id/fubiaoti_tv"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/follow_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="26dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@drawable/card_bord_org_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:text="@string/follow"
|
||||
android:textColor="@color/text_true_color"
|
||||
android:textSize="12sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="@dimen/dp10">
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/biaoti_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp1"
|
||||
android:background="@color/line_color"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Notice:"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/dp10"
|
||||
android:id="@+id/des_tv"
|
||||
android:lineSpacingExtra="@dimen/dp2"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</layout>
|
||||
155
app/src/main/res/layout/fragment_home.xml
Normal file
155
app/src/main/res/layout/fragment_home.xml
Normal file
@@ -0,0 +1,155 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/scrollView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<VideoView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:id="@+id/video"
|
||||
app:layout_constraintDimensionRatio="375:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:id="@+id/cover_iv"
|
||||
android:src="@mipmap/zanwei"
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_constraintDimensionRatio="375:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp28"
|
||||
android:id="@+id/cover_tv"
|
||||
android:gravity="center"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/card_bord_bantou_bg"
|
||||
android:text="@string/enter_streaming_room"
|
||||
app:layout_constraintDimensionRatio="1920:1080"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/tab_rv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="118dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp10">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="114dp"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:id="@+id/rvuser"
|
||||
android:background="@drawable/card_bord_org_bg"
|
||||
android:layout_marginTop="@dimen/dp14" />
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp28"
|
||||
android:background="@mipmap/img_bg_hot"
|
||||
android:gravity="center"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/sp16"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:drawableLeft="@mipmap/img_cb_l"
|
||||
android:drawableRight="@mipmap/img_cb_r"
|
||||
android:drawablePadding="@dimen/dp5"
|
||||
android:textColor="@color/white"
|
||||
android:text="@string/hot_anchor"/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cameraView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:cardBackgroundColor="@color/main_color"
|
||||
app:cardCornerRadius="@dimen/dp5"
|
||||
app:cardElevation="@dimen/dp0"
|
||||
android:layout_margin="10dp"
|
||||
app:layout_constraintDimensionRatio="1080:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:drawableLeft="@mipmap/icon_live02"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/live_now"
|
||||
android:drawablePadding="@dimen/dp5"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingRight="@dimen/dp5"
|
||||
android:id="@+id/rv"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</layout>
|
||||
92
app/src/main/res/layout/fragment_live.xml
Normal file
92
app/src/main/res/layout/fragment_live.xml
Normal file
@@ -0,0 +1,92 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<data>
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/big_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cameraView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginRight="@dimen/dp10"
|
||||
app:cardBackgroundColor="@color/main_color"
|
||||
app:cardCornerRadius="@dimen/dp8"
|
||||
app:cardElevation="@dimen/dp0"
|
||||
app:layout_constraintDimensionRatio="1080:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
/>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="@color/main_color">
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tablayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/transparent"
|
||||
app:tabBackground="@color/transparent"
|
||||
app:tabIndicator="@drawable/tab_line1"
|
||||
app:tabIndicatorColor="@color/text_true_color"
|
||||
app:tabIndicatorHeight="2dp"
|
||||
app:tabMaxWidth="@dimen/dp120"
|
||||
app:tabMinWidth="@dimen/dp90"
|
||||
app:tabMode="scrollable"
|
||||
app:tabPaddingBottom="3dp"
|
||||
app:tabPaddingEnd="0dp"
|
||||
app:tabPaddingStart="0dp"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabSelectedTextColor="@color/body_txt_color"
|
||||
app:tabTextAppearance="@style/MyBgTablayoutstyle"
|
||||
app:tabTextColor="@color/text_false_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:layout_marginTop="5dp"
|
||||
android:paddingLeft="@dimen/dp5"
|
||||
android:paddingRight="@dimen/dp5">
|
||||
|
||||
</androidx.viewpager2.widget.ViewPager2>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
74
app/src/main/res/layout/fragment_live_child.xml
Normal file
74
app/src/main/res/layout/fragment_live_child.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/main_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- <com.scwang.smart.refresh.layout.SmartRefreshLayout-->
|
||||
<!-- android:id="@+id/refreshLayout"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- app:srlAccentColor="@color/main_color">-->
|
||||
|
||||
<!-- <com.xyz.babelive.ui.view.BezierCircleHeader-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content" />-->
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- android:orientation="vertical">-->
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/nodate_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="@dimen/dp150"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/nodata_img" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wdbd_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/no_live_data"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
<!-- <com.scwang.smart.refresh.footer.BallPulseFooter-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- app:srlAccentColor="@color/des_txt_color" />-->
|
||||
<!-- </com.scwang.smart.refresh.layout.SmartRefreshLayout>-->
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</layout>
|
||||
92
app/src/main/res/layout/fragment_match.xml
Normal file
92
app/src/main/res/layout/fragment_match.xml
Normal file
@@ -0,0 +1,92 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<data>
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/big_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/default_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cameraView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="@dimen/dp10"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginRight="@dimen/dp10"
|
||||
app:cardBackgroundColor="@color/main_color"
|
||||
app:cardCornerRadius="@dimen/dp8"
|
||||
app:cardElevation="@dimen/dp0"
|
||||
app:layout_constraintDimensionRatio="1080:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
/>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="@color/main_color">
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tablayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/transparent"
|
||||
app:tabBackground="@color/transparent"
|
||||
app:tabIndicator="@drawable/tab_line1"
|
||||
app:tabIndicatorColor="@color/text_true_color"
|
||||
app:tabIndicatorHeight="2dp"
|
||||
app:tabMaxWidth="@dimen/dp120"
|
||||
app:tabMinWidth="@dimen/dp90"
|
||||
app:tabMode="scrollable"
|
||||
app:tabPaddingBottom="3dp"
|
||||
app:tabPaddingEnd="0dp"
|
||||
app:tabPaddingStart="0dp"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabSelectedTextColor="@color/body_txt_color"
|
||||
app:tabTextAppearance="@style/MyBgTablayoutstyle"
|
||||
app:tabTextColor="@color/text_false_color" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewpager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:layout_marginTop="5dp"
|
||||
android:paddingLeft="@dimen/dp5"
|
||||
android:paddingRight="@dimen/dp5">
|
||||
|
||||
</androidx.viewpager2.widget.ViewPager2>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
74
app/src/main/res/layout/fragment_match_child.xml
Normal file
74
app/src/main/res/layout/fragment_match_child.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="model"
|
||||
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
||||
</data>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/main_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- <com.scwang.smart.refresh.layout.SmartRefreshLayout-->
|
||||
<!-- android:id="@+id/refreshLayout"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- app:srlAccentColor="@color/main_color">-->
|
||||
|
||||
<!-- <com.xyz.babelive.ui.view.BezierCircleHeader-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content" />-->
|
||||
|
||||
<!-- <LinearLayout-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- android:orientation="vertical">-->
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/nodate_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="@dimen/dp150"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/nodata_img" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wdbd_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/no_matches"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
<!-- </LinearLayout>-->
|
||||
|
||||
<!-- <com.scwang.smart.refresh.footer.BallPulseFooter-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- app:srlAccentColor="@color/des_txt_color" />-->
|
||||
<!-- </com.scwang.smart.refresh.layout.SmartRefreshLayout>-->
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
</layout>
|
||||
136
app/src/main/res/layout/hot_game_child_item.xml
Normal file
136
app/src/main/res/layout/hot_game_child_item.xml
Normal file
@@ -0,0 +1,136 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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_content1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="118dp"
|
||||
android:paddingLeft="@dimen/dp10">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="190dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_height="98dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="@dimen/dp20"
|
||||
android:id="@+id/game_iv"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:src="@color/main_color"
|
||||
app:es_shape_type="round"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/live_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="@dimen/dp4"
|
||||
android:layout_toRightOf="@id/game_iv"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_below="@id/live_name">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/zhudui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/zhudu_tv"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/live_tag_lys"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<ImageView
|
||||
android:id="@+id/live_tag"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:visibility="gone"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:background="@mipmap/live_tag_img1" />
|
||||
<ImageView
|
||||
android:id="@+id/yuyue_iv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@mipmap/home_messge_smaill"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="进行中"
|
||||
android:lines="1"
|
||||
android:id="@+id/status_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/kedui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/kedui_tv"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
173
app/src/main/res/layout/hot_game_child_item_big.xml
Normal file
173
app/src/main/res/layout/hot_game_child_item_big.xml
Normal file
@@ -0,0 +1,173 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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_content1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_height="110dp">
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="@dimen/dp20"
|
||||
android:id="@+id/game_iv"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:src="@color/main_color"
|
||||
app:es_shape_type="round"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/live_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="@dimen/dp4"
|
||||
android:layout_toRightOf="@id/game_iv"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp" />
|
||||
<LinearLayout
|
||||
android:id="@+id/live_ly"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="25dp"
|
||||
android:background="@drawable/button_ture_bg2"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:layout_alignParentEnd="true"
|
||||
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/live_tag"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="@dimen/dp3"
|
||||
android:lines="1"
|
||||
android:text="@string/live"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/yuyue_iv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@mipmap/home_messge_smaill"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_below="@id/live_name">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/zhudui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/zhudu_tv"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:layout_marginTop="@dimen/dp6"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="进行中"
|
||||
android:lines="1"
|
||||
android:id="@+id/status_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="VS"
|
||||
android:lines="1"
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/jieguo_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/kedui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/kedui_tv"
|
||||
android:layout_marginTop="@dimen/dp6"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
171
app/src/main/res/layout/hot_live_child_item.xml
Normal file
171
app/src/main/res/layout/hot_live_child_item.xml
Normal file
@@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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_content1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp5">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/mid_cy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:scaleType="centerCrop"
|
||||
android:id="@+id/cover_iv"
|
||||
app:es_shape_type="rectangle"
|
||||
app:ease_radius="@dimen/dp5"
|
||||
app:layout_constraintDimensionRatio="172.5:98"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/live_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="25dp"
|
||||
android:background="@drawable/button_ture_bg2"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/live_tag"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="@dimen/dp3"
|
||||
android:lines="1"
|
||||
android:text="@string/live"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/saishi_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="25dp"
|
||||
android:background="@drawable/button_ture_bg1"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/live_tag1"
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="@dimen/dp3"
|
||||
android:lines="1"
|
||||
android:text="@string/original_audio_live"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:id="@+id/hot_tv"
|
||||
android:layout_margin="@dimen/dp5"
|
||||
android:drawablePadding="@dimen/dp3"
|
||||
android:drawableStart="@mipmap/img_hot_small"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/hot_name_tv"
|
||||
android:layout_margin="@dimen/dp5"
|
||||
android:drawablePadding="@dimen/dp3"
|
||||
android:lines="1"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/mid_cy"
|
||||
android:id="@+id/title_tv"
|
||||
android:lines="2"
|
||||
android:ellipsize="end"
|
||||
android:layout_margin="@dimen/dp10"
|
||||
android:text="Westman vs. Bluming"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/bot_ly"
|
||||
android:visibility="gone"
|
||||
android:layout_below="@id/title_tv"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:orientation="horizontal">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="@dimen/dp20"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:id="@+id/user_name_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:text="解说小王"
|
||||
android:id="@+id/user_name_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
35
app/src/main/res/layout/hot_live_item.xml
Normal file
35
app/src/main/res/layout/hot_live_item.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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_content1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="88dp"
|
||||
android:paddingLeft="@dimen/dp10">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/video_ly"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:id="@+id/video"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@mipmap/zanwei"
|
||||
app:ease_radius="@dimen/dp5"
|
||||
app:es_shape_type="rectangle"
|
||||
app:layout_constraintDimensionRatio="156:88"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@mipmap/live_tag_img1"
|
||||
android:id="@+id/live_tag"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</RelativeLayout>
|
||||
48
app/src/main/res/layout/layout_action_bar.xml
Normal file
48
app/src/main/res/layout/layout_action_bar.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/top_ly_f"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/main_color"
|
||||
android:orientation="vertical">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:orientation="horizontal"
|
||||
android:paddingRight="@dimen/dp15">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/back_button"
|
||||
android:layout_width="@dimen/dp40"
|
||||
android:layout_height="@dimen/dp40"
|
||||
android:src="@mipmap/back_img"
|
||||
android:layout_centerVertical="true"
|
||||
android:scaleType="centerInside"
|
||||
android:background="@drawable/bg_ripple" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/title_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textStyle="bold"
|
||||
android:textSize="@dimen/sp18" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/menu_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="@dimen/sp14"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</layout>
|
||||
47
app/src/main/res/layout/layout_action_bar1.xml
Normal file
47
app/src/main/res/layout/layout_action_bar1.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/top_ly_f"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:orientation="horizontal"
|
||||
android:paddingRight="@dimen/dp15">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/back_button"
|
||||
android:layout_width="@dimen/dp40"
|
||||
android:layout_height="@dimen/dp40"
|
||||
android:src="@mipmap/back_img"
|
||||
android:layout_centerVertical="true"
|
||||
android:scaleType="centerInside"
|
||||
android:background="@drawable/bg_ripple" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/title_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textStyle="bold"
|
||||
android:textSize="@dimen/sp18" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/menu_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="@dimen/sp14"
|
||||
android:background="@drawable/bg_ripple"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</layout>
|
||||
49
app/src/main/res/layout/live_user_child_item.xml
Normal file
49
app/src/main/res/layout/live_user_child_item.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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_content1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="114dp"
|
||||
android:paddingLeft="@dimen/dp10">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="@dimen/dp80"
|
||||
android:layout_height="@dimen/dp80"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/card_bantou_bg">
|
||||
<RelativeLayout
|
||||
android:layout_width="@dimen/dp42"
|
||||
android:layout_marginTop="9dp"
|
||||
android:layout_height="46dp">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp42"
|
||||
android:layout_height="@dimen/dp42"
|
||||
android:src="@mipmap/ic_launcher_round"
|
||||
app:es_shape_type="round"
|
||||
android:id="@+id/user_iv"/>
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp42"
|
||||
android:layout_height="46dp"
|
||||
android:visibility="gone"
|
||||
android:src="@mipmap/live_float_img"
|
||||
android:id="@+id/live_tag_iv"/>
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:text="Lucy"
|
||||
android:id="@+id/user_tv"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
143
app/src/main/res/layout/login_pop.xml
Normal file
143
app/src/main/res/layout/login_pop.xml
Normal file
@@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dp5"
|
||||
app:cardBackgroundColor="@color/main_color"
|
||||
app:cardCornerRadius="10dp"
|
||||
app:cardElevation="@dimen/dp4">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:id="@+id/vn_tv"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawableLeft="@mipmap/yuenan"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="@string/country_vietnam"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="(+84)"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:id="@+id/my_tv"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawableLeft="@mipmap/mlxy"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="@string/country_malaysia"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="(+60)"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:id="@+id/sg_tv"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawableLeft="@mipmap/xjp"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="@string/country_singapore"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="(+65)"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color" />
|
||||
<LinearLayout
|
||||
android:id="@+id/kh_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="54dp"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawableLeft="@mipmap/jpz"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="@string/country_cambodia"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="54dp"
|
||||
android:drawablePadding="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/dp15"
|
||||
android:text="(+855)"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
80
app/src/main/res/layout/notice_item_child.xml
Normal file
80
app/src/main/res/layout/notice_item_child.xml
Normal file
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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_content1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="14dp"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/noti_img"/>
|
||||
<TextView
|
||||
android:id="@+id/title_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/dp20"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/time_tv"
|
||||
android:text="2025-07-20"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="[Important Reminder] Recently, there are many telecom frauds, so don't be cheated!"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:layout_marginBottom="@dimen/dp15"
|
||||
android:id="@+id/des_tv"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
<View android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/line_color"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:gravity="center_vertical"
|
||||
android:drawableEnd="@mipmap/next_img"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:text="@string/view_details"
|
||||
android:textSize="@dimen/sp14"/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
173
app/src/main/res/layout/remind_child_item_big.xml
Normal file
173
app/src/main/res/layout/remind_child_item_big.xml
Normal file
@@ -0,0 +1,173 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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_content1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:paddingStart="@dimen/dp10"
|
||||
android:paddingEnd="@dimen/dp10">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/card_bord_org_bg1"
|
||||
android:layout_height="110dp">
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="@dimen/dp20"
|
||||
android:id="@+id/game_iv"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:layout_marginStart="@dimen/dp10"
|
||||
android:src="@color/main_color"
|
||||
app:es_shape_type="round"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/live_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="@dimen/dp4"
|
||||
android:layout_toRightOf="@id/game_iv"
|
||||
android:layout_marginTop="@dimen/dp10"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginEnd="@dimen/dp10"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp" />
|
||||
<LinearLayout
|
||||
android:id="@+id/live_ly"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="25dp"
|
||||
android:background="@drawable/button_ture_bg2"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:layout_alignParentEnd="true"
|
||||
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:id="@+id/live_tag"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="@dimen/dp3"
|
||||
android:lines="1"
|
||||
android:text="@string/live"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/yuyue_iv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp5"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="@dimen/dp5"
|
||||
android:layout_marginEnd="@dimen/dp5"
|
||||
android:layout_marginBottom="@dimen/dp5"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@mipmap/home_messge_smaill"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="@dimen/dp10"
|
||||
android:layout_below="@id/live_name">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/zhudui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/zhudu_tv"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:layout_marginTop="@dimen/dp6"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="进行中"
|
||||
android:lines="1"
|
||||
android:id="@+id/status_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/des_txt_color"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="VS"
|
||||
android:lines="1"
|
||||
android:textStyle="bold"
|
||||
android:id="@+id/jieguo_tv"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<com.xyz.babelive.ui.view.CircleImageView
|
||||
android:layout_width="@dimen/dp32"
|
||||
android:layout_height="@dimen/dp32"
|
||||
android:src="@mipmap/player_img"
|
||||
android:id="@+id/kedui_iv"
|
||||
app:es_shape_type="round"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:id="@+id/kedui_tv"
|
||||
android:layout_marginTop="@dimen/dp6"
|
||||
android:ellipsize="end"
|
||||
android:paddingStart="@dimen/dp5"
|
||||
android:paddingEnd="@dimen/dp5"
|
||||
android:textColor="@color/body_txt_color"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
24
app/src/main/res/layout/tab_item.xml
Normal file
24
app/src/main/res/layout/tab_item.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="@dimen/dp20" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:textStyle="bold"
|
||||
android:textSize="@dimen/sp14"
|
||||
android:layout_marginStart="@dimen/dp3"
|
||||
android:textColor="@color/body_txt_color"/>
|
||||
</LinearLayout>
|
||||
26
app/src/main/res/layout/tab_live_item.xml
Normal file
26
app/src/main/res/layout/tab_live_item.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
android:layout_margin="@dimen/dp5"
|
||||
android:id="@+id/big_ly"
|
||||
android:background="@drawable/card_bantou_bg"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="@dimen/dp20"
|
||||
android:layout_height="@dimen/dp20" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:lines="1"
|
||||
android:textStyle="bold"
|
||||
android:textSize="@dimen/sp14"
|
||||
android:layout_marginStart="@dimen/dp3"
|
||||
android:textColor="@color/body_txt_color"/>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user