官术网_书友最值得收藏!

Summary

In this chapter, we looked at how to design and then build a form screen in detail. These screens are an important part of applications, because they are where you users give you their details and as such they need to be especially intuitive and quick to use. Nobody likes to spend a lot of time filling in forms, and even less if they are using a mobile device. It's always good to remember that people normally use apps for relatively short periods of time; "what was that email?", is a more common action than "let me draft a letter to someone." This viewpoint helps when it comes to designing the user interfaces and overall experience you will build for your users.

It's always a good idea to sketch out your screen somewhere visually, and if you do, use software for it: ensure that it's something that lets you focus on layout and content rather than having to worry about colors, templates, or layout systems; always design first and then figure out how you'll build it. Pay attention to apps you enjoy using and that you find useful, look at how they do things--imitation is the sincerest form of flattery. Don't copy people too closely, but draw inspiration from good ideas; your users will thank you for it as well, because you'll be presenting them with something familiar, and hopefully more innovative at the same time.

Try to keep all text, colors, and dimensions as resources, and use generic names for these resources wherever possible. It's not uncommon to have an ok and cancel resource defined right under the application's name, because they are commonly used throughout applications. Keeping these values in the resource system allows for changes to be made far more easily, and keeps the application look and experience consistent for your users.

In the next chapter, we'll look at events, the Android event model, and how to best deal with events from your user interfaces in a way that provides the best user experience, while also being the more flexible to program with.

主站蜘蛛池模板: 安远县| 罗平县| 大名县| 密云县| 阿坝县| 商南县| 屯昌县| 津南区| 瑞金市| 禹州市| 贡嘎县| 信丰县| 张家界市| 拜城县| 南安市| 银川市| 尉氏县| 邛崃市| 马龙县| 东城区| 邹平县| 常德市| 绩溪县| 武义县| 正阳县| 麟游县| 邯郸市| 迁安市| 定西市| 大化| 广平县| 蓬安县| 桐柏县| 玉龙| 海晏县| 洪湖市| 陆川县| 通榆县| 甘孜县| 英吉沙县| 龙井市|