I know that in Android all XML layout files are converted to Java code on compilation. Is there any way to have access to those java codes (layout in java)?
Or if there isn't a way, is there any converters I can find?
--
For example:
XML layout:
<TextView
android:layout_width="50px">
</TextView>
Java code:
TextView textview = new TextView();
textview.setWidth(50);
--
As you can see, this is just a simple example, however, layouts are usually much longer. It would take a very long time to convert it line by line.
Any suggestions?