XML:
<data>
<variable
name="viewModel"
type="com.ani.dylan.peony.module.home.vm.MainViewModel" />
</data>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<com.bilibili.magicasakura.widgets.TintToolbar
android:id="@+id/main_toolbar"
style="@style/Widget.App.Toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/theme_color_primary"
android:elevation="@dimen/dp_4"
android:fitsSystemWindows="true"
app:popupTheme="@style/AppTheme.PopupOverlay" />
<com.ani.dylan.peony.view.CustomViewPager
android:id="@+id/main_vp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/main_tab"
android:layout_below="@+id/main_toolbar" />
<me.majiajie.pagerbottomtabstrip.PageNavigationView
android:id="@+id/main_tab"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_alignParentBottom="true"
android:background="@color/white" />
</RelativeLayout>
报错信息:
Caused by: android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class com.bilibili.magicasakura.widgets.TintToolbar
Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class com.bilibili.magicasakura.widgets.TintToolbar
换成V7自带的Toolbar就没有问题。
求各位大佬帮忙看看 感激不禁
XML:
报错信息:
Caused by: android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class com.bilibili.magicasakura.widgets.TintToolbar
Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class com.bilibili.magicasakura.widgets.TintToolbar
换成V7自带的Toolbar就没有问题。
求各位大佬帮忙看看 感激不禁