How to change xml attributes of layouts through Java code android? At first I thought about using regular expressions, but I was told that “parsing regular HTML or HTML is pure evil”, so I decided to ask if there is an adequate library / solution to this problem?
1 answer
To customize the layout, you can use the code as well. All necessary classes and methods are already implemented, you do not need to constantly change xml - just at the right time you call the right methods.
Classes such as LayoutParams (inner class), LayoutInflater and so on.
All you need is to find the necessary tools in the documentation in the form of a code.
|