Android Question Convert Designer to Code

andrewj

Active Member
Licensed User
Hi,
Is there an easy way to convert a layout built into the designer to the equivalent code? I have one activity which was built using the designer, and I want to convert it to being built by code like the rest of my projects. Is there a quick way to do this or do I have to do it manually?
Thanks
Andrew
 

Cableguy

Expert
Licensed User
It is not as simple as a direct conversion as there are properties in the designer that need extra code to access like corner radius or borders color... even some positioning keywords are not available on code such as bottom or right...
open the .bal file on a text editor... about 75% -85% is somewhat straight forward conversion... but you have some extra work to do... always
 

andrewj

Active Member
Licensed User
Hi,
I don't mind doing some manual work. It's just a long time since I created the layout and I want to make sure I've got the basic definitions right.

I have tried opening the .bal file in both notepad and Workpad without success. Do you know which text editor works?
Thanks
Andrew
 
Top