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.
我能做些什麼來擴大沒有活動的主題附屬於他們的佈局?