235 lines
9.0 KiB
XML
235 lines
9.0 KiB
XML
<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/rootView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false">
|
|
|
|
<com.yunbao.common.custom.MyViewPager
|
|
android:id="@+id/viewPager"
|
|
android:background="@mipmap/bg_main_bg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:canScroll="false" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rt_main_tab"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@color/white"
|
|
android:paddingTop="5dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_main_bg_tab"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@mipmap/home_bar_bg" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true">
|
|
|
|
<com.yunbao.common.custom.TabButtonGroup
|
|
android:id="@+id/tab_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="5dp">
|
|
|
|
<com.yunbao.common.custom.TabButton
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
app:tbn_checked="true"
|
|
app:tbn_icon_array_id="@array/main_tab_home"
|
|
app:tbn_icon_size="25dp"
|
|
app:tbn_text_color_checked="@color/colorMainTab"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp"
|
|
app:tbn_tip="@string/main_home" />
|
|
|
|
<com.yunbao.common.custom.TabButton
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginRight="60dp"
|
|
android:layout_weight="1"
|
|
app:tbn_icon_array_id="@array/main_tab_video"
|
|
app:tbn_icon_size="25dp"
|
|
app:tbn_text_color_checked="@color/colorMainTab"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp"
|
|
app:tbn_tip="@string/live" />
|
|
|
|
<com.yunbao.common.custom.TabButton
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
app:tbn_icon_array_id="@array/main_tab_list"
|
|
app:tbn_icon_size="25dp"
|
|
app:tbn_text_color_checked="@color/colorMainTab"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp"
|
|
app:tbn_tip="@string/chat" />
|
|
|
|
<com.yunbao.common.custom.TabButton
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
app:tbn_icon_array_id="@array/main_tab_chat"
|
|
app:tbn_icon_size="25dp"
|
|
app:tbn_text_color_checked="@color/colorMainTab"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp"
|
|
app:tbn_tip="@string/main_me" />
|
|
|
|
</com.yunbao.common.custom.TabButtonGroup>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="3dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_weight="1"
|
|
android:gravity="right">
|
|
|
|
<TextView
|
|
android:id="@+id/v_table_redpoint"
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:background="@drawable/background_ff5075"
|
|
android:gravity="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="10dp"
|
|
android:visibility="visible" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="right">
|
|
|
|
<View
|
|
android:id="@+id/v_table_redpoint_me"
|
|
android:layout_width="12dp"
|
|
tools:visibility="visible"
|
|
android:layout_height="12dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:background="@drawable/background_ff5075"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/btn_start"
|
|
android:layout_width="40dp"
|
|
android:layout_marginTop="3dp"
|
|
android:layout_height="40dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerInParent="true"
|
|
android:onClick="mainClick"
|
|
android:src="@mipmap/icon_middle" />
|
|
</RelativeLayout>
|
|
|
|
<com.yunbao.main.views.FloatBannerView
|
|
android:id="@+id/float_banner_home"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/rt_main_tab"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:visibility="gone"
|
|
tools:visibility="gone" />
|
|
|
|
<View
|
|
android:id="@+id/banner_click"
|
|
android:layout_width="123dp"
|
|
android:layout_height="35.33dp"
|
|
android:layout_above="@id/red_packet"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:visibility="gone"
|
|
tools:visibility="gone" />
|
|
|
|
<include
|
|
android:id="@+id/red_packet"
|
|
layout="@layout/view_float_red_packet"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/rt_main_tab"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="12dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:visibility="gone" />
|
|
|
|
<include
|
|
android:id="@+id/war_order"
|
|
layout="@layout/view_float_war_order"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/rt_main_tab"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="25dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginBottom="50dp">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="2" />
|
|
|
|
<ImageView
|
|
android:id="@+id/waiting_tip"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="57dp"
|
|
android:layout_weight="1"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:src="@mipmap/waiting_tip"
|
|
android:visibility="gone" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|