Android 安卓工作室-x27;t解决@id/default\u状态-呈现问题

Android 安卓工作室-x27;t解决@id/default\u状态-呈现问题,android,xml,Android,Xml,当我尝试在我的xml代码中添加Fab时,我遇到了这个问题,但我不明白为什么..我尝试清理我的项目和无效的缓存并重新启动,但没有任何更改 这是我的xml代码: <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http

当我尝试在我的xml代码中添加Fab时,我遇到了这个问题,但我不明白为什么..我尝试清理我的项目和无效的缓存并重新启动,但没有任何更改

这是我的xml代码:

<android.support.v4.widget.DrawerLayout 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/left_drawer_activity_tickets"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">


<android.support.v4.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/right_drawer_activity"
    android:layout_width="match_parent"
    android:layout_height="match_parent">



    <android.support.design.widget.CoordinatorLayout 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="true"
        android:background="#DDDDDD"

        >

        <android.support.design.widget.AppBarLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:theme="@style/AppTheme.AppBarOverlay"

            android:id="@+id/appbar_activity"
            >

            <android.support.v7.widget.Toolbar
                android:id="@+id/toolbar_activity"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                android:background="?attr/colorPrimary"
                app:popupTheme="@style/AppTheme.PopupOverlay" />

            <SearchView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:imeOptions="actionSearch"
                android:id="@+id/search_activity"
                android:iconifiedByDefault="false"
                android:focusable="false"
                android:focusableInTouchMode="true"
                android:queryHint="Search..."
                android:visibility="gone"
                />


        </android.support.design.widget.AppBarLayout>




        <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="match_parent" android:layout_height="match_parent"
            android:background="#DDDDDD"
            android:layout_margin="5dp"


            >



            <it.prova.widgets.AnimatedExpandableListView
                android:id="@+id/listViewTickets"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_marginLeft="5dp"
                android:layout_marginRight="5dp"

                android:layout_marginTop="55dp"
                />


        </RelativeLayout>








        <io.github.yavski.fabspeeddial.FabSpeedDial
            android:id="@+id/fab_option_activity"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom|end"

            app:fabGravity="bottom_end"
            app:fabMenu="@menu/fab_speed_dial_tickets_minimal"
            app:miniFabBackgroundTint="@android:color/white"
            app:miniFabDrawableTint="?attr/colorPrimaryDark"
            app:miniFabTitleTextColor="?attr/colorPrimaryDark" />


    </android.support.design.widget.CoordinatorLayout>





    <android.support.design.widget.NavigationView
        android:id="@+id/nav_view_right_activity"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="end"
        android:fitsSystemWindows="true"
        app:headerLayout="@layout/nav_header_right_customer"
        app:menu="@menu/menu_right_customer" />


</android.support.v4.widget.DrawerLayout>


<android.support.design.widget.NavigationView
    android:id="@+id/nav_view_left_activity"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
    app:headerLayout="@layout/nav_header_main"
    app:menu="@menu/menu_left_drawer" />

看起来您正在使用。我在Logcat中遇到了类似的默认_状态和错误消息。这两者是相关的


作者将在未来的更新中纠正这些问题。现在,您可以做的是添加一个空的默认构造函数到
FabSpeedDialBehavior.java
,如第32期所述。但是,等待更新可能更容易。跟踪问题32,查看它何时着陆。它还将修复问题11。

看起来您正在使用。我在Logcat中遇到了类似的默认_状态和错误消息。这两者是相关的


作者将在未来的更新中纠正这些问题。现在,您可以做的是添加一个空的默认构造函数到
FabSpeedDialBehavior.java
,如第32期所述。但是,等待更新可能更容易。跟踪问题32,查看它何时着陆。它还将解决问题11。

为什么?你用两个抽屉布置吗?@Nguyễ恩图隆吉ế是的,我想使用左抽屉和右抽屉移除xmlns:android=”“。只需在布局中调用它Root@Nguyễ恩图隆吉ế好的,我试过了,但是我仍然有错误。很确定这是雅夫斯基工厂本身的问题。在emulator/real设备上运行良好,但预览无法处理。为什么?你用两个抽屉布置吗?@Nguyễ恩图隆吉ế是的,我想使用左抽屉和右抽屉移除xmlns:android=”“。只需在布局中调用它Root@Nguyễ恩图隆吉ế好的,我试过了,但是我仍然有错误。很确定这是雅夫斯基工厂本身的问题。在emulator/real设备上运行良好,但预览无法处理。