Error inflating class Android support design

前端 未结 5 1846
囚心锁ツ
囚心锁ツ 2021-02-19 08:03

What I am trying to do is use the new android support design library mentioned here: http://android-developers.blogspot.com/2015/05/android-design-support-library.html.

5条回答
  •  一整个雨季
    2021-02-19 08:51

    If you are using any of the Design Library components, you should ensure your activity extends AppCompatActivity and uses an appropriate Theme.AppCompat theme. Note that the FloatingActionButton relies on the colorAccent set on your theme - ensure your theme has that defined.

提交回复
热议问题