0
我正在使用适用于Android的Google设计支持库。我想有一个RelativeLayout,它里面有一个FloatingActionButton。问题是,我用充气的观点:以编程方式膨胀AppCompat主题
mLayoutInflater.inflate(window.getLayoutResource(), null)
我得到抛出的异常,告诉我说,家长必须使用程序兼容性主题为设计库。
Caused by: java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
我能做些什么来扩大没有活动的主题附属于他们的布局?