Android Question Spinner views will not disable themselves....

tmf

Member
Licensed User
Longtime User
I have a ScrollView with many views on it, if EnabledAll is called with FALSE, then almost all views are disabled, except Spinners, they grey out, but still can be opened and clicked....

How to make Spinners unusable also....

sub EnableAll(p As Panel, Enabled As Boolean)
For Each v As View In p
v.enabled = Enabled
Next
End Sub

Sub module_ItemClick(Position As Int, Value As Object)
If(Position == 0) Then
EnableAll(ScrollView1.Panel, False)
Else
EnableAll(ScrollView1.Panel, True)
End If
End Sub
 

tmf

Member
Licensed User
Longtime User
OK just tested it and same thing, it looks grey'd out and no usable but its still selectable.... see images

android1.JPG
android2.JPG
 
Upvote 0

tmf

Member
Licensed User
Longtime User
Here is a demo, I stripped out all sorts of things so the program makes little sense, but the spinner is still not being disabled, but the slider is....

Thanks!
 

Attachments

  • 1.zip
    1.2 KB · Views: 178
Upvote 0

tmf

Member
Licensed User
Longtime User
wow you are fast man! nice, it works should have know to remove the recursion once you sent that last message with the new method!

Thanks!!!!
 
Upvote 0
Top