diff --git a/apk/immersionBar-2.3.3-beta02.apk b/apk/immersionBar-2.3.3-beta02.apk index 1e0f9a4..938092f 100644 Binary files a/apk/immersionBar-2.3.3-beta02.apk and b/apk/immersionBar-2.3.3-beta02.apk differ diff --git a/sample/src/main/java/com/gyf/immersionbar/fragment/five/BaseFiveFragment.java b/sample/src/main/java/com/gyf/immersionbar/fragment/five/BaseFiveFragment.java index 82eef3a..ae3fceb 100644 --- a/sample/src/main/java/com/gyf/immersionbar/fragment/five/BaseFiveFragment.java +++ b/sample/src/main/java/com/gyf/immersionbar/fragment/five/BaseFiveFragment.java @@ -37,7 +37,7 @@ public void onAttach(Context context) { @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - mRootView = inflater.inflate(setLayoutId(), container, false); + mRootView = inflater.inflate(getLayoutId(), container, false); return mRootView; } @@ -86,12 +86,13 @@ public void onDestroy() { ImmersionBar.with(this).destroy(); } + /** - * Sets layout id. + * Gets layout id. * * @return the layout id */ - protected abstract int setLayoutId(); + protected abstract int getLayoutId(); /** * 初始化数据 diff --git a/sample/src/main/java/com/gyf/immersionbar/fragment/five/CategoryFiveFragment.java b/sample/src/main/java/com/gyf/immersionbar/fragment/five/CategoryFiveFragment.java index 0540bc0..5ef2512 100755 --- a/sample/src/main/java/com/gyf/immersionbar/fragment/five/CategoryFiveFragment.java +++ b/sample/src/main/java/com/gyf/immersionbar/fragment/five/CategoryFiveFragment.java @@ -19,7 +19,7 @@ public static CategoryFiveFragment newInstance() { } @Override - protected int setLayoutId() { + protected int getLayoutId() { return R.layout.fragment_two_category; } diff --git a/sample/src/main/java/com/gyf/immersionbar/fragment/five/HomeFiveFragment.java b/sample/src/main/java/com/gyf/immersionbar/fragment/five/HomeFiveFragment.java index cee41e2..3586ea1 100755 --- a/sample/src/main/java/com/gyf/immersionbar/fragment/five/HomeFiveFragment.java +++ b/sample/src/main/java/com/gyf/immersionbar/fragment/five/HomeFiveFragment.java @@ -25,7 +25,7 @@ public static HomeFiveFragment newInstance() { } @Override - protected int setLayoutId() { + protected int getLayoutId() { return R.layout.fragment_two_home; } diff --git a/sample/src/main/java/com/gyf/immersionbar/fragment/five/MainFragment.java b/sample/src/main/java/com/gyf/immersionbar/fragment/five/MainFragment.java index f981acf..b7964eb 100644 --- a/sample/src/main/java/com/gyf/immersionbar/fragment/five/MainFragment.java +++ b/sample/src/main/java/com/gyf/immersionbar/fragment/five/MainFragment.java @@ -40,7 +40,7 @@ public static MainFragment newInstance() { } @Override - protected int setLayoutId() { + protected int getLayoutId() { return R.layout.activity_fragment_two; } diff --git a/sample/src/main/java/com/gyf/immersionbar/fragment/five/MineFiveFragment.java b/sample/src/main/java/com/gyf/immersionbar/fragment/five/MineFiveFragment.java index d62ff38..39b8cd5 100755 --- a/sample/src/main/java/com/gyf/immersionbar/fragment/five/MineFiveFragment.java +++ b/sample/src/main/java/com/gyf/immersionbar/fragment/five/MineFiveFragment.java @@ -19,7 +19,7 @@ public static MineFiveFragment newInstance() { } @Override - protected int setLayoutId() { + protected int getLayoutId() { return R.layout.fragment_two_mine; } diff --git a/sample/src/main/java/com/gyf/immersionbar/fragment/five/ServiceFiveFragment.java b/sample/src/main/java/com/gyf/immersionbar/fragment/five/ServiceFiveFragment.java index 8b0fd1f..7e31099 100755 --- a/sample/src/main/java/com/gyf/immersionbar/fragment/five/ServiceFiveFragment.java +++ b/sample/src/main/java/com/gyf/immersionbar/fragment/five/ServiceFiveFragment.java @@ -19,7 +19,7 @@ public static ServiceFiveFragment newInstance() { } @Override - protected int setLayoutId() { + protected int getLayoutId() { return R.layout.fragment_two_service; } diff --git a/sample/src/main/res/layout/fragment_two_home.xml b/sample/src/main/res/layout/fragment_two_home.xml index 9fa3b73..186604b 100644 --- a/sample/src/main/res/layout/fragment_two_home.xml +++ b/sample/src/main/res/layout/fragment_two_home.xml @@ -55,6 +55,11 @@ android:text="向上滑动试试" android:textSize="20sp" /> +