没有获得底部标签点击

时间:2015-11-27 06:59:49

标签: android navigation

我正在使用带有右侧导航的底部标签。对于导航我正在使用DrawerLayout检查我的以下代码

<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context=".HomeTabFragement">

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="40dp">

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="20dp"
        android:layout_alignParentLeft="true"
        android:scaleType="center"
        android:src="@drawable/tittlesetting" />

    <ImageButton
        android:id="@+id/ibtn_sidemenu"
        android:layout_width="50dp"
        android:layout_height="30dp"
        android:layout_alignParentRight="true"
        android:scaleType="fitXY"
        android:src="@drawable/settingbutton_bg" />
</RelativeLayout>

<android.support.v4.widget.DrawerLayout
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/black">

    <android.support.design.widget.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="150dp"
        android:layout_height="match_parent"
        android:layout_gravity="right"
        android:background="@android:color/white"
        android:fitsSystemWindows="true" />
</android.support.v4.widget.DrawerLayout>


<FrameLayout
    android:id="@android:id/tabcontent"
    android:layout_width="match_parent"
    android:layout_height="0dip"
    android:layout_weight="1"
    android:background="@android:color/darker_gray" />

<android.support.v4.app.FragmentTabHost
    android:id="@android:id/tabhost"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true" />

我只获得了DrawerLayout

enter image description here

0 个答案:

没有答案