- Where Developers Learn, Share, & Build Careers


I hope to show a dynamic generating HTML page on my mobile application. This HTML file is structured in fixed format. Include forms, images, and buttons However, when it comes to various mobile platforms, such as iOS and Android and also separate cell phones, such as sumsung or other company from Android Display results are different, some of them are very bad. This problem is heavy for the Android system because there are many different companies using this system.

For now I am using a method when the user applies the application, then the application cell phone model user use. And the server side will choose the right HTML template for that phone. This means that I have to write an HTML template for every phone. These days, consider the mounting models of phones, I do not think this is a wise idea.

I hope if someone can face a solution to solve this problem. Either a solution that will make HTML templates based on the user's cell phone model, or a universal way of creating an HTML fits all mobile displays.

I highly recommend if I understand your problem correctly Using twitter bootstrap to design your html pages. It is very easy to use and with this you can create self-resizing web pages according to the screen. Responsible CSS defined in Twitter Bootstrap handles all screen sizes for you and renders html pages on the fly according to the size of the screen, without disturb the look and feel of your HTML code.

You can get the source and learn everything from here about it

This is a demo page using a twitter page. You can try and open it in a browser window and then change the size of the window how the content of the page rearrange itself

even after There are some socks that help you get up to speed with Twitter Bootstrap

It saved me a lot of effort and time. I had to learn to invest only a few hours to learn how to arrange things in the HTML page. Ahia and I was able to set up everything. I hope this will help you greatly reduce your manual effort and save a lot of time

Hope it helps.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -