今天项目开发中遇到的问题,Tablayout 报错:
java.lang.NullPointerException: Missing required view with ID: com.*.*:id/back_tab
xml布局内容
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"