Hi, I want to disable all the contents of the linear layout, when the activity loads, when the user clicks on it, a message is displayed with a message.
After clicking the "Activate" button, you must enable the linear layout. Is this possible or not?
I can turn off all content inside the linear layout using the following code:
LinearLayout myLayout = (LinearLayout) findViewById(R.id.linearLayout1); for ( int i = 0; i < myLayout.getCount(); i++ ){ View view = myLayout.getChildAt(i); view.setVisibility(View.GONE);
I want to display a warning dialog when a user clicks on a disabled area.
offer me a useful link or sample code.
source share