Android Question Settings layout with variable

ovt001

Member
Licensed User
Longtime User
Hello everybody.
My question is very simple.
I use 2 Activity and 2 layout.
First layout is has a label and one button "Settings".
Second layout is the Setitngs form with one checkbox

I want to enable (or diable) the label of the first layout when I check (or uncheck) the checkbox of the settings layout.

How???
thank you
O.
 

KMatle

Expert
Licensed User
Longtime User
You can call a sub in the other Activity with CallSub2 and set the view's properties (like enabled/disabled). "Problem" is here that the other activity starts.

I would define a variable (not the view!) in Process_Globals. You can set the value by ActivityName.MyVariable = True/False. On Activity_Resume just read that value and set your view. When it gets more complex you can save it to a file and read the file in _Resume.
 
Upvote 0
Top