mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
#2227 moved navigation view to custom main activity and loaded in custom fragment
This commit is contained in:
parent
4a83d6837f
commit
7abcbc858e
@ -175,7 +175,6 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
ImageButton exitFullscreenButton;
|
||||
@BindView(R2.id.navigation_fragment_main_drawer_layout)
|
||||
protected DrawerLayout drawerLayout;
|
||||
@BindView(R2.id.activity_main_nav_view)
|
||||
protected NavigationView tableDrawerRightContainer;
|
||||
@BindView(R2.id.activity_main_content_frame)
|
||||
protected FrameLayout contentFrame;
|
||||
|
@ -43,4 +43,12 @@
|
||||
app:headerLayout="@layout/nav_main"
|
||||
app:menu="@menu/menu_drawer_main" />
|
||||
|
||||
<com.google.android.material.navigation.NavigationView
|
||||
android:id="@+id/activity_main_nav_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginTop="24dp"
|
||||
android:fitsSystemWindows="true"
|
||||
app:headerLayout="@layout/drawer_right" />
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
|
@ -60,12 +60,4 @@
|
||||
android:visibility="invisible" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<com.google.android.material.navigation.NavigationView
|
||||
android:id="@+id/activity_main_nav_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginTop="24dp"
|
||||
android:fitsSystemWindows="true"
|
||||
app:headerLayout="@layout/drawer_right" />
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
|
@ -169,6 +169,7 @@ class CustomReaderFragment : CoreReaderFragment() {
|
||||
|
||||
override fun loadDrawerViews() {
|
||||
drawerLayout = requireActivity().findViewById(R.id.custom_drawer_container)
|
||||
tableDrawerRightContainer = requireActivity().findViewById(R.id.activity_main_nav_view)
|
||||
}
|
||||
|
||||
override fun createMainMenu(menu: Menu?): MainMenu {
|
||||
|
Loading…
x
Reference in New Issue
Block a user