FloatingActionButton在更新的gradle依赖项23.0.2之后呈现问题

时间:2016-03-16 13:53:38

标签: android android-layout android-support-library android-support-design

将我的build.gradle(Module:app)依赖项更新为23.2.0,获取渲染问题类无法实例化:android.support.design.widget.FloatingActionButton 凡是fab按钮是他们的在整个项目中。

  dependencies {
            compile 'com.android.support:appcompat-v7:23.2.0'
            compile 'com.android.support:support-v4:23.2.0'
            ...
            compile 'com.android.support:recyclerview-v7:23.2.0'
    }

AppTheme :Theme.AppCompat.Light.NoActionBar

Android Studio版本:1.4

我的布局示例

<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipToPadding="false">

    <android.support.design.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false">
                <android.support.v7.widget.RecyclerView
                            android:id="@+id/list_buildings"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent" />
        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/_18"
            android:clickable="true"
            android:src="@drawable/ic_add_white_24dp"
            android:transitionName="fab"
            app:backgroundTint="@color/fab_button_color"
            app:elevation="@dimen/_04"
            app:layout_anchorGravity="bottom|right|end" />

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

0 个答案:

没有答案