Q quique Member Licensed User Longtime User Jul 26, 2018 #1 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: Code: Copy 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
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: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2018 #2 quique said: I've been trying, but since the TabStripViewPager only allows for activities to be loaded inside each tab, I had to do the following: Click to expand... You mean: TabStripViewPager only allows for panels to be loaded inside each tab. AHPreferenceScreen creates an activity. You will not be able to nicely embed it inside TabStip. Why do you need AHPreferenceScreen? Create your own settings page. Upvote 0
quique said: I've been trying, but since the TabStripViewPager only allows for activities to be loaded inside each tab, I had to do the following: Click to expand... You mean: TabStripViewPager only allows for panels to be loaded inside each tab. AHPreferenceScreen creates an activity. You will not be able to nicely embed it inside TabStip. Why do you need AHPreferenceScreen? Create your own settings page.