Package com.example.lottery.util
Class AdminNavigationHelper
java.lang.Object
com.example.lottery.util.AdminNavigationHelper
Centralised helper that wires up the admin bottom-navigation bar
(
layout_bottom_nav_admin.xml) in every admin screen.
Call setup(Activity, AdminTab, String) (or the overload with
finishOnNavigate) from onCreate after setContentView.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTabs in the admin bottom-navigation bar. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidoverrideTabWithoutFinish(android.app.Activity activity, AdminNavigationHelper.AdminTab tab, String userId) Re-wires a single tab so it navigates to the target Activity without callingfinish()on the source.static voidsetup(android.app.Activity activity, AdminNavigationHelper.AdminTab currentTab, String userId) Highlights the active tab and wires every tab's click listener.static voidsetup(android.app.Activity activity, AdminNavigationHelper.AdminTab currentTab, String userId, boolean finishOnNavigate) Highlights the active tab and wires every tab's click listener.
-
Method Details