Before you start developing an phone gap based App you need to keep following things in your mind.
General Practice:
Things to take care in Phone Gap based Application.
General Practice:
- Set any controls height and width always in term of percentage.
- Same should be applied with Div.
- Don't use margin at all.
- Use margin only to give spacing with controls- 5 px - 20 px
- Design a parent page.Only this page should contain head and body tag.
- Other layout should only contain div.
- After that only Remove and Append Div based on the required layout.
- Use boot strap to provide a web-responsive feature to your application
Things to take care in Phone Gap based Application.
- All append function will start throwing security Exceptions
- Use the following tag around your append code.
MSApp.execUnsafeLocalFunction(function() { var body = document.getElementsByTagName('body')[0]; body.innerHTML = '<div style="color:' + textColor + '">example</div>'; });
Comments
Post a Comment
Thanks for your Comment