android - Convert GWT web game to support mobile browsers -


i have web game built in gwt. struggling make mobile-friendly. support multiple screen sizes desktop, used transform: scale(*) css property, doesn't seem apply mobile browsers. guidelines/tips how tackle this? http://www.poker-fighter.com/pokerfighter.html

there not gwt-specific responsive design. of techniques same html/css/js frameworks. (nb: should never use scale() way fit screen size.)

what gwt, however, ability create different layouts different screen sizes, , create separate permutations phones , tablets/desktop instead of using media query break points or other techniques bloat code or css files.

to accomplish that, typically, create abstract view implementation (i.e. gameboardviewimpl) includes code , ui references common form factors, , extend abstract view implementation create form-factor-specific implementations, e.g. gameboardviewimpldesktop , gameboardviewimplphone. approach not creates smaller , more efficient code, creates code easier develop , maintain. can refresh browser , see how each view looks in desktop, tablet or phone form factor, , if not right, know fix it.

take @ mgwt - may or may not need platform-specific widgets , styles comes with, @ minimum can use mgwt.getformfactor() , similar methods.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -