I'd like my VIEW layout to be adjusted on orientation change.
My Manifest is set up with: android:configChanges="keyboardHidden|orientation" on the activity.
I have res/layout-land, res/layout-port.
I have onConfigurationChanged in my Activity (it get's called on …
I know how to get the root view with View.getRootView(). I am also able to get the view from a button's onClick event where the argument is a View. But how can I get the view in an activity?
I'm trying to set the background color of a View (in this case a Button).
I use this code:
// set the background to green
v.setBackgroundColor(0x0000FF00 );
v.invalidate();
It causes the Button to disappear from the screen. What …