Package com.example.lottery.util
Class EntrantNavigationHelper
java.lang.Object
com.example.lottery.util.EntrantNavigationHelper
Centralised helper that wires up the entrant bottom-navigation bar
(
layout_bottom_nav_entrant.xml) in every entrant screen.
Call setup(Activity, EntrantTab, String) from onCreate
after setContentView. Admin-role extras are read from
AdminRoleManager automatically.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTabs in the entrant bottom-navigation bar. -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddisableNavigation(android.app.Activity activity) Replaces all tab click listeners with no-ops.static voidsetup(android.app.Activity activity, EntrantNavigationHelper.EntrantTab currentTab, String userId) Highlights the active tab and wires every tab's click listener.static voidsetup(android.app.Activity activity, EntrantNavigationHelper.EntrantTab currentTab, String userId, boolean finishOnNavigate) Highlights the active tab and wires every tab's click listener.
-
Method Details