bgsoft Well-Known Member Licensed User Longtime User Nov 26, 2013 #1 I can change the text once I created the preference? For example: Code: Copy Dim cat1 As AHPreferenceCategory screen.Initialize("Config" ,"") cat1.AddEditText2("VolumeRing","Volume Ring" ,"(0-10)","10",2,False,True,"") screen.AddPreferenceCategory(cat1) Text "Ring Volume", I want to add a variable to output the current value. When I create preference is the text: Ring Volume Before calling preference I want: Volume Ring (7) If I put this: Code: Copy cat1.AddEditText2 ("VolumeRing" & VolumeRingNow & ")", "Ring Volume", "(0-10)", "10", 2, False, True, "") It creates a new preference. The problem is that when I create the preference, the user still does not change the value, this value can change at any time. So before calling the preference I have to upgrade. The code is just an example to make it compressible my bad English thanks
I can change the text once I created the preference? For example: Code: Copy Dim cat1 As AHPreferenceCategory screen.Initialize("Config" ,"") cat1.AddEditText2("VolumeRing","Volume Ring" ,"(0-10)","10",2,False,True,"") screen.AddPreferenceCategory(cat1) Text "Ring Volume", I want to add a variable to output the current value. When I create preference is the text: Ring Volume Before calling preference I want: Volume Ring (7) If I put this: Code: Copy cat1.AddEditText2 ("VolumeRing" & VolumeRingNow & ")", "Ring Volume", "(0-10)", "10", 2, False, True, "") It creates a new preference. The problem is that when I create the preference, the user still does not change the value, this value can change at any time. So before calling the preference I have to upgrade. The code is just an example to make it compressible my bad English thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2013 #2 Have you checked the extended AHPreferenceActivity library: AHPreferenceActivity Library ? Upvote 0
bgsoft Well-Known Member Licensed User Longtime User Nov 26, 2013 #3 Yes, is the first line of my example (Dim cat1 As AHPreferenceCategory) And in your example, I have not seen anything to do what I ask. Upvote 0
Yes, is the first line of my example (Dim cat1 As AHPreferenceCategory) And in your example, I have not seen anything to do what I ask.
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2013 #4 PreferenceActivity doesn't support it. You will need to rebuild the whole screen. Upvote 0