集成完直播后提交代码
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user