Android Example My first class module - Settings menu panel - Feedback please

2014-01-29_20-17-39.png 2014-01-29_20-17-33.png 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.

B4X:
Sub Process_Globals
Dim language As String
End Sub

Call the class as following

B4X:
Dim settings As settings_menu
settings.Initialize(Activity, 5%x, 5%y, 90%x, 90%y)
 

Attachments

  • settings_menu.zip
    8.5 KB · Views: 499
Last edited:

notedop

Member
Licensed User
Longtime User
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:
Top