Added a FloatingActionButton to the markup:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ListView android:id="@+id/lvMain" android:layout_weight="1" android:layout_width="match_parent" android:layout_height="match_parent"> </ListView> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="16dp" android:src="@drawable/pl"> </android.support.design.widget.FloatingActionButton> </LinearLayout> Displays error:
android.view.InflateException: Binary XML file line # 31: Error inflating class android.support.design.widget.FloatingActionButton
Help to understand the problem, I will be very grateful.
, да и унаследоваться отsure that 'com.android.support:design is connected, да и унаследоваться отit would not hurt to, да и унаследоваться отAppCompatActivity` - ermak0ffActivity extends AppCompatActivity? - ermak0ffsupport-v7connect - YuriySPb ♦