Jan 29, 2014 Replies: 2 Hi, For an app i'm working on I've created this settings menu class. Currently it is used to set a global value called language in the main activity. Of course you would be able to set more views on the panel. If the calling activity contains a scrollview or other views the click event will be captured by an invisible panel. I'm open for feedback! Edit: uploaded project and removed code in post. Code: Copy Sub Process_Globals Dim language As String End Sub Call the class as following Code: Copy Dim settings As settings_menu settings.Initialize(Activity, 5%x, 5%y, 90%x, 90%y) Attachments settings_menu.zip settings_menu.zip 8.5 KB · Views: 769 Last edited: Jan 30, 2014 Click to expand...
Hi, For an app i'm working on I've created this settings menu class. Currently it is used to set a global value called language in the main activity. Of course you would be able to set more views on the panel. If the calling activity contains a scrollview or other views the click event will be captured by an invisible panel. I'm open for feedback! Edit: uploaded project and removed code in post. Code: Copy Sub Process_Globals Dim language As String End Sub Call the class as following Code: Copy Dim settings As settings_menu settings.Initialize(Activity, 5%x, 5%y, 90%x, 90%y)
NJDude Expert Licensed User Longtime User Jan 30, 2014 #2 It would be better if you attached the code as a ZIP file.
notedop Member Licensed User Longtime User Jan 30, 2014 #3 Done as requested. I added a property to set the background of the menu. Second button will give you a random color each press. Last edited: Jan 31, 2014
Done as requested. I added a property to set the background of the menu. Second button will give you a random color each press.