FAQ Database Discussion Community


Setting a layout to view.setEnabled(false) does not disable all child views

android,isenabled
I have a layout with several nested relative layouts. Within the nested layouts I have form elements, such as TextViews, EditTexts and Buttons. The code is abbreviated just for this example: Context con; LinearLayout survey = new LinearLayout(); RelativeLayout question = new RelativeLayout(); LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); Button...

Extra disablement property on many fields at once

c#,xaml,isenabled
I have a form containing many controls. In the list there's a field that should disable all other controls to prevent any further user action. Would you know if there's a simple way to do this? Would like to not add the same disablement condition on all the fields one...

Lost Gray On IsEnabled False

.net,wpf,foreground,isenabled
Once I set the TextBlock Foreground Property then I lost the gray on IsEnable=False on buttons and also lost the gray on ToolTip. How can I set a the style for TextBlock foreground and not effect the IsEnable=False and ToolTip? <Style TargetType="TextBlock"> <Setter Property="FontFamily" Value="Segoe UI Semilight" /> <Setter Property="FontSize"...

How To Check if WiFi Enabled On Phone

java,android,wifi,isenabled
I'm trying to develop an android app with java and xml, and I would like some guidance on how to determine if wifi is enabled on the phone that the app is on or not. Any help would be appreciated. I've tried using these methods, but they all don't detect...

CheckBox disabled - disable only check box, not label

windows,checkbox,label,disabled-control,isenabled
I am using CheckBox in my Winforms application and it is showing to a user if some functionality is set or is not set. If the functionality is curretly running the CheckBox is flashing (label is changing color from black to grey in 1 second interval). But in some case...