How can I customize my layout.xml from code before calling setContentView(View) function?
- by Marton_hun
I would like to customize my layout definition (declared in my_layout.xml file) from code.
Unfortunately I can use findViewById() function to find the specific views (defined in my_layout.xml file) and customize them from code only after I called setContentView(R.layout.my_layout).
But what if I want to customize my layout first, before calling setContentView()? How can I access the specific views before calling setContentView()?