• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps change xml attribute in java code

Yes, effectively there is. However, not quite in the way you're thinking. You need to get a reference to your widget, and then call one of its internal methods that related to the Xml attributes. For example:
Code:
Button  button = (Button)findViewById(R.id.button);
button.setText("Press Me");
That code takes the place of one of the Xml attributes related to the text. They have more functions which are related to their background colors, etc. You just need to check the class's page on the android developer site, and it will tell you all the functions.
 
Back
Top Bottom