diff --git a/app/src/main/java/com/baozi/mvp/base/BaseActivity.java b/app/src/main/java/com/baozi/mvp/base/BaseActivity.java index ea72853..4150381 100644 --- a/app/src/main/java/com/baozi/mvp/base/BaseActivity.java +++ b/app/src/main/java/com/baozi/mvp/base/BaseActivity.java @@ -4,6 +4,7 @@ import android.content.Context; import android.content.Intent; import android.os.Bundle; + import androidx.annotation.ColorRes; import androidx.annotation.DrawableRes; import androidx.annotation.IdRes; @@ -11,6 +12,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; + import android.util.Log; import android.util.SparseArray; import android.view.LayoutInflater; @@ -200,12 +202,12 @@ public V findView(@IdRes int viewId) { */ protected View initView(@NonNull LayoutInflater inflater, @Nullable Bundle savedInstanceState) { int layout = initView(savedInstanceState); - try { - return inflater.inflate(layout, null); - } catch (Exception e) { - e.printStackTrace(); - return null; - } +// try { + return inflater.inflate(layout, null); +// } catch (Exception e) { +// e.printStackTrace(); +// return null; +// } } /** diff --git a/demo/src/main/res/layout/at_viewpage.xml b/demo/src/main/res/layout/at_viewpage.xml index 36356f1..93d39aa 100644 --- a/demo/src/main/res/layout/at_viewpage.xml +++ b/demo/src/main/res/layout/at_viewpage.xml @@ -19,7 +19,7 @@ diff --git a/demo/src/main/res/layout/fg_demo.xml b/demo/src/main/res/layout/fg_demo.xml index 5911b8c..bc3a1d2 100644 --- a/demo/src/main/res/layout/fg_demo.xml +++ b/demo/src/main/res/layout/fg_demo.xml @@ -31,6 +31,6 @@ android:id="@+id/vp_content" android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_behavior="android.support.design.widget.AppBarLayout$ScrollingViewBehavior" /> + app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" /> \ No newline at end of file