WEB开发网
开发学院手机开发Android 开发 Android 设计思想 阅读

Android 设计思想

 2010-06-17 03:29:00 来源:WEB开发网   
核心提示:Extend ThemesWhen it comes to the look-and-feel of the user interface, it’s important to blend in nicely. Users are jarred by applications which contrast with t

Extend Themes

When it comes to the look-and-feel of the user interface, it’s important to blend in nicely. Users are jarred by applications which contrast with the user interface they’ve come to expect. When designing your UIs, you should try and avoid rolling your own as much as possible. Instead, use a Theme. You can override or extend those parts of the theme that you need to, but at least you’re starting from the same UI base as all the other applications. For all the details, click here.

Make Being Flexible part of your Resolutions

Different Android devices will sport different resolutions. Some will even be able to change resolutions on the fly, such as by switching to landscape mode. It’s important to make sure your layouts and drawables are flexible.

Fortunately, this is very easy to do. Check out Implementing a User Interface for the full details, but in brief what you must do is provide different versions of your artwork (if you use any) for the key resolutions, and then design your layout to accommodate various dimensions. (For example, avoid using hard-coded positions and instead use relative layouts.) If you do that much, the system handles the rest, and your application looks great on any device.

Assume the Network is Slow

Android devices will come with a variety of network-connectivity options. All will have some data-access provision, though some will be faster than others. The lowest common denominator, however, is GPRS, the non-3G data service for GSM networks. Even 3G-capable devices will spend lots of time on non-3G networks, so slow networks will remain a reality for quite a long time to come.

That’s why you should always code your applications to minimize network accesses and bandwidth. You can’t assume the network is fast, so you should always plan for it to be slow. If your users happen to be on faster networks,

上一页  10 11 12 13 14 15 16 17  下一页

Tags:Android 设计思想

编辑录入:coldstar [复制链接] [打 印]
赞助商链接