P Pencil3 Member Licensed User Jul 14, 2017 #1 Trying to figure out how to have a DesignSupport NavigationDrawer open a Preference Activity. Have tried a few things like Support_NavigationItemClick StartActivity(PrefsMain) and Support_Click StartActivity(PrefsMain) But I am stuck, any pointers?
Trying to figure out how to have a DesignSupport NavigationDrawer open a Preference Activity. Have tried a few things like Support_NavigationItemClick StartActivity(PrefsMain) and Support_Click StartActivity(PrefsMain) But I am stuck, any pointers?
DonManfred Expert Licensed User Longtime User Jul 14, 2017 #2 See https://www.b4x.com/android/forum/threads/preferenceactivity-tutorial.10608/ or (newer using Material Design) https://www.b4x.com/android/forum/threads/preferences-material-design-preferences.75482/#content Upvote 0
See https://www.b4x.com/android/forum/threads/preferenceactivity-tutorial.10608/ or (newer using Material Design) https://www.b4x.com/android/forum/threads/preferences-material-design-preferences.75482/#content
P Pencil3 Member Licensed User Jul 14, 2017 #3 Yes, so I have a Material Design Preference done along with a DesignSupport NavigationDrawer. I can use Activity.AddMenuItem("Settings", "Menu") and Menu_Click Log("Start Preference Activity") StartActivity(PrefsMain) and everything works fine. But I want to be able to click on "settings" in the NavigationDrawer and have the same operation. I can't figure out how to do that and can't seem to find any posts on it as well. DonManfred said: See https://www.b4x.com/android/forum/threads/preferenceactivity-tutorial.10608/ or (newer using Material Design) https://www.b4x.com/android/forum/threads/preferences-material-design-preferences.75482/#content Click to expand... Upvote 0
Yes, so I have a Material Design Preference done along with a DesignSupport NavigationDrawer. I can use Activity.AddMenuItem("Settings", "Menu") and Menu_Click Log("Start Preference Activity") StartActivity(PrefsMain) and everything works fine. But I want to be able to click on "settings" in the NavigationDrawer and have the same operation. I can't figure out how to do that and can't seem to find any posts on it as well. DonManfred said: See https://www.b4x.com/android/forum/threads/preferenceactivity-tutorial.10608/ or (newer using Material Design) https://www.b4x.com/android/forum/threads/preferences-material-design-preferences.75482/#content Click to expand...
DonManfred Expert Licensed User Longtime User Jul 14, 2017 #4 Did you get any error when starting the prefs activity? Upvote 0
P Pencil3 Member Licensed User Jul 14, 2017 #5 No errors. I've tried the below to try navigating from the NavigationDrawer to the activity and don't see the click in the log. Support_Click Log("click") StartActivity(PrefsMain) DonManfred said: Did you get any error when starting the prefs activity? Click to expand... Upvote 0
No errors. I've tried the below to try navigating from the NavigationDrawer to the activity and don't see the click in the log. Support_Click Log("click") StartActivity(PrefsMain) DonManfred said: Did you get any error when starting the prefs activity? Click to expand...
P Pencil3 Member Licensed User Jul 14, 2017 #6 Don't know how I missed it before, figured it out. If MenuItem.Id = 10 Then StartActivity(PrefsMain) End If Upvote 0
Don't know how I missed it before, figured it out. If MenuItem.Id = 10 Then StartActivity(PrefsMain) End If