Search code examples
androidmethodspropertiesbottomnavigationview

Access to property of Bottom Navigation in other Activities


I am a beginner in Android Programming, I have defined a Bottom Navigation in my mainActivity and want to access the property and methods of it in other activities(regardless of access in my mainActivity). is it possible?


Solution

  • umm , why dont use fragments instead of activity ? you can sync activity and fragments easily with callback inteface and inside fragments access method in mainActivity .