Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert a table based layout to divs with Java

Tags:

java

html

I've recently been charged with creating a Android & iphone app for work. That being said, I'm a css/php designer-developer with a bit of javascript in the mix.

I need to write a bit of Java (not javascript) that will convert a table based layout into a div based layout so that I can then have control over positioning, padding, and what not.

I see many similar post, but these post involve more "designer" oriented goals rather than functional control over positioning, layout and so on.

A good resource would be greatly appreciated as I can't seem to google an appropriate search string. My searches tend to yield more "free javascript code", "Java tutorials about making flashing banners", "How to make fading menus" and countless other rabbit holes that lead to wonderland.

Oh, Currently using eclipse with Android SDK & ADT plugins installed.

like image 527
Ostrava Avatar asked Jun 12 '26 02:06

Ostrava


1 Answers

It would be much more easier if you have predefinied a set of rules how the conversion should actually be taken place. There is namely fairly a lot which needs to be taken into account. This is really not going to be a bit of Java.

If you're looking for an existing tool, in Adobe Dreamweaver you can do that by Modify > Convert > Tables to AP divs. But still, I question if those kind of tools provides exactly that what you need. As said, there's fairly a lot which needs to be taken into account and it's shooting in the dark without a clear set of rules/requirements.

like image 159
BalusC Avatar answered Jun 13 '26 16:06

BalusC