material
material copied to clipboard
Switch
the switch cannot be disable...
You can try this:
public class DisabledSwitch extends Switch {
public DisabledSwitch(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onTouchEvent(@NonNull MotionEvent event) {
return false;
}
}