taomenggo init
This commit is contained in:
166
app/src/main/res/layout/activity_main.xml
Normal file
166
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
~ Use of this source code is governed by a MIT license that can be
|
||||
~ found in the LICENSE file.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="false"
|
||||
android:foreground="?android:attr/selectableItemBackground"
|
||||
>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/view_pager"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/bottom_group_t"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_weight="1"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#FFFFFF"
|
||||
android:clipChildren="false"
|
||||
android:id="@+id/bottom_group_t"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:elevation="3dp"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/bottom_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:background="#FFFFFF"
|
||||
android:clipChildren="false"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/conversation_btn_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:onClick="tabClick">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/conversation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:drawableTop="@mipmap/index_img_t"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/shouye_txt"
|
||||
android:textColor="@color/color_fe6881"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/conversation_dot"
|
||||
android:layout_width="@dimen/dimen_6_dp"
|
||||
android:layout_height="@dimen/dimen_6_dp"
|
||||
android:layout_alignRight="@+id/conversation"
|
||||
android:layout_marginLeft="@dimen/dimen_10_dp"
|
||||
android:layout_marginTop="@dimen/dimen_7_dp"
|
||||
android:background="@drawable/bg_conversation_red_dot"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/contact_btn_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:onClick="tabClick">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contact"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:drawableTop="@mipmap/chat_img_f"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/chat_txt"
|
||||
android:textColor="@color/color_898989"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chatunread"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignStart="@+id/contact"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:background="@drawable/bg_conversation_red_dot"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/dimen_5_dp"
|
||||
android:paddingEnd="@dimen/dimen_5_dp"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/live_btn_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:onClick="tabClick"
|
||||
android:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/live"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:drawableTop="@mipmap/voom_img_f"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/voom_txt"
|
||||
android:textColor="@color/color_898989"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/myself_btn_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:onClick="tabClick">
|
||||
<!-- android:drawableTop="@mipmap/wallet_img_f"-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mine"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:drawableTop="@mipmap/wo_f"
|
||||
android:drawablePadding="3dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/mini_txt"
|
||||
android:textColor="@color/color_898989"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:id="@+id/bottom_v"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user