Hi There!
Is there a way to place an AHPreferenceScreen inside a tab on a TabStripViewPager ?
I've been trying, but since the TabStripViewPager only allows for activities to be loaded inside each tab, I had to do the following:
(tab #2 is intended for config screen).
What happens is: The whole TabStripViewPager thing gets replaced by the AHPreferenceSCreen. In order to return to the TabStripViewPager I got to press Android's back button.
Surely there is a way to make AHPreferenceScreen to behave nicely with TabStripViewPager, but I am not proficient enough to make it happen, so any hint, help, idea, alternative is appreciated.
Regards,
Enrique
Is there a way to place an AHPreferenceScreen inside a tab on a TabStripViewPager ?
I've been trying, but since the TabStripViewPager only allows for activities to be loaded inside each tab, I had to do the following:
B4X:
Sub TabStrip1_PageSelected (Position As Int)
Log($"Current page: ${Position}"$)
' You can add your logic here
If Position=2 Then StartActivity(screen.CreateIntent)
End Sub
(tab #2 is intended for config screen).
What happens is: The whole TabStripViewPager thing gets replaced by the AHPreferenceSCreen. In order to return to the TabStripViewPager I got to press Android's back button.
Surely there is a way to make AHPreferenceScreen to behave nicely with TabStripViewPager, but I am not proficient enough to make it happen, so any hint, help, idea, alternative is appreciated.
Regards,
Enrique