214 lines
8.1 KiB
XML
214 lines
8.1 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:layout_width="match_parent"
|
|
android:layout_marginBottom="55dp"
|
|
android:layout_height="match_parent"
|
|
app:canScroll="false" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rt_main_tab"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="71dp"
|
|
android:layout_alignParentBottom="true">
|
|
|
|
<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="45dp"
|
|
android:layout_alignParentBottom="true">
|
|
|
|
<com.yunbao.common.custom.TabButtonGroup
|
|
android:id="@+id/tab_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<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="28dp"
|
|
app:tbn_text_color_checked="@color/colorAccent"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp" />
|
|
|
|
<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="28dp"
|
|
app:tbn_text_color_checked="@color/colorAccent"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp" />
|
|
|
|
<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="28dp"
|
|
app:tbn_text_color_checked="@color/colorAccent"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp" />
|
|
|
|
<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="28dp"
|
|
app:tbn_text_color_checked="@color/colorAccent"
|
|
app:tbn_text_color_unchecked="@color/gray1"
|
|
app:tbn_text_size="11sp" />
|
|
|
|
</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_marginEnd="5dp"
|
|
android:layout_weight="1"
|
|
android:gravity="right">
|
|
|
|
<TextView
|
|
android:id="@+id/v_table_redpoint"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:background="@drawable/background_ff5075"
|
|
android:gravity="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="10dp"
|
|
android:visibility="gone" />
|
|
</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"
|
|
android:layout_height="12dp"
|
|
android:layout_marginTop="2dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:background="@drawable/background_ff5075"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/btn_start"
|
|
android:layout_width="60dp"
|
|
android:layout_height="60dp"
|
|
android:layout_centerInParent="true"
|
|
android:onClick="mainClick"
|
|
android:src="@mipmap/icon_main_start" />
|
|
</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="visible" />
|
|
|
|
<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="visible" />
|
|
|
|
<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" />
|
|
|
|
<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>
|