These days, there are friends, companies to ask me about WAP browser, instant messaging content design, and low-level UI component design issues. In order to answer the needs of netizens and friends, to contribute their own source code, the code directly on the Eclipse+eclipseme can run directly
The functionality that is implemented in it is displayed by Kxml interpreting WML and generating UI components. Using multithreading to download data,
I wanted to use proxy to read the picture--this part didn't do it.
Separation of business logic and UI using MVC architecture.
Operate in command mode.
Implement most of the useful UI uses, or you can define your own UI.
。。。。。。。。。。。。 There are a lot of not achieved, we wait for everyone to do.
Once again, the relevant source code can be used for commercial purposes, but when you use the trouble to inform me. Let me also know how much I have contributed to J2ME. I am also regarded as a respect for myself.
The code is poorly written. Also hope everyone perfect design a J2ME WAP browser fantasy
Keywords: j2me
Yesterday completed a small program, so today there are more idle, the previous design of the J2ME UI, so on a mobile phone canvas to draw the UI is also more experience. So today's whim, rather than customizing a WAP browser to play.
I have done WAP site before, so also know that it's about a label, want to explain these tags through the XML package is not difficult, now my personal thoughts sent here, I hope that enthusiasts to provide suggestions.
1: Design a reusable UI to provide support for XML interpretation. (basically using the previous UI design method).
2: Using the Web site's popular XML interpretation package for WML interpretation, the main idea is to use a 2-dimensional table for data structure preservation.
3:session mechanism, this is a difficulty, remember the previous design WAP, when the test found that some mobile phones do not support the session. The idea is to save a sessionid on the phone and then send this ID and keep the ID consistent with the server at all times.
4: Explain the mechanism, whether it is one side of the interpretation of the display, or all the download, explained in the show, in terms of technical difficulties, the first is undoubtedly more difficult, but the second in the user experience there are relatively large defects.
5: Caching mechanism, the main difficulty is to record the user's operation, and determine whether the server content changes, so as to decide whether to download again, or directly from the cache.
I am only sure of the 1th, the 2nd estimate look at the document is OK, other aspects I have not more understanding
The origins of Creativity
1. From the client who implemented a soccer game last June, there is a certain understanding of instant network development,
2. The soccer project itself abstracts a set of modifiable, pluggable UI implementations.
3. Simple inspiration for other open source.
implementation process.
Wap Explorer Picture Preview
A few days ago said to design a WAP browser, after the design of the last Sunday, the basic framework of the UI has been built. However, for WAP's WML interpreter has not been written, one of the more difficult to write, has not been practiced, and the company has things busy these days. So I stopped, but while I was free this afternoon, I made some good screenshots for you to see.
In the UI I realized the control of the font has been to the skin (the so-called skin is just a change of color) control