GWT 2.6 Mobile Development

I want to create a Mobile + Desktop responsive application using GWT for the dynamic part. It will not be a single page app, but I wonder if any compatibility issues remain in the created JS or are all major mobile browser being supported by the GWT compiler / framework.

Also I wonder what the best way to go is. Usually we would use bootstrap and annotate html elements with custom ids and run a single GWT script / program which enhances and extends the annotated elements.

Since we have to react on browser resize events I wonder if there are any quirks (as before) or is this event now stable?


Have you considered mgwt? There are many pitfalls in pure GWT-for-mobile implementations that this library tries to take care of. You can mix mgwt and GWT widgets to a certain extent.

A few points to consider:

  • Bootstrap is heavy. It's not an issue for desktop these days, but still may be a concern in mobile apps.

  • GWT is heavy. GWT 3.o promises to be lighter because it drops support for (very) old browsers. mgwt already uses lightweight, mobile/touch-optimized implementations of key widgets (no IE6-8 on mobile devices!).

  • Resizing layouts using JavaScript is very slow compared to native browser layouts. Again, not an issue on modern desktops but a key factor for mobile devices. If you go with pure GWT, use flex-box layouts.

  • Animations are very important on mobile devices. They are not just an eye-candy: they indicate to a user what is happening (consider, for example, swipes). You may want to look at mgwt's implementation of animated displays.

  • Mobile apps are very dependent on screen density. If you go with pure GWT, look at how mgwt's uses deferred binding to optimize for different screen densities.

  • 链接地址: http://www.djcxy.com/p/44110.html

    上一篇: 将GWT Web应用程序自动转换为移动应用程序

    下一篇: GWT 2.6移动开发