Skip to Content
Android Developer Tools深入精要
book

Android Developer Tools深入精要

by Mike Wolfson
July 2014
Intermediate to advanced
248 pages
5h 19m
Chinese
GoTop Information, Inc.
Content preview from Android Developer Tools深入精要
Android
佈局基本概念
|
161
第十一章:操作使用者介面工具
第十一章
操作使用者介面工具
[Page-165]
使用者介面(
user interface, UI
)對於行動裝置應用程式來說非常重要,由於
Android
的廣泛使用使得你需要將程式執行在多種不同目標平台上。一般來說,支援的裝置愈
廣泛,則會有更多的潛在客戶群。
對於絕大部分的行動裝置應用程式,
UI
的簡潔優雅與易用性比任何都還來得重要,你
app
必須要好看才好在現今的市場上獲得成功;然而,由於
Android
的多種螢幕大
小與解析度,要製作具吸引力的
UI
是有難度的;你不能限制你的
app
只在一種或小範
圍的裝置上執行來應付此問題,至少你無法在不捨棄廣大的潛在用戶情況下這麼做。
這正是
Android framework
能協助的地方;
Android
從初期就設計成能支援多種裝置,
並提供開發者以簡單的方式完成支援;開發者工具也被設計成讓支援多種裝置變得更
簡單。
Android
佈局基本概念
為了能善用
UI
的各種功能,了解
framework
的基本概念是很重要的。
使用
XML
定義佈局
Android
的佈局可以用
XML
語法來定義
app
的使用者介面;這些
XML
檔案含有多種
介面控制項(
widget
)的描述,控制項可能是
TextViews
Buttons
ImageViews
(別
與「桌面小工具」搞混,這兩個是不同的東西)。
XML
檔案裡包含你想呈現的控制項
所有詳細資訊(例如:方位、間距、元件在畫面上的特定位置)。
162
|
第十一章:操作使用者介面工具 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Android 高效能多執行緒

Android 高效能多執行緒

Anders Goransson
深入淺出 jQuery

深入淺出 jQuery

Ryan Benedetti, Ronan Cranley
HTML5 錦囊妙計

HTML5 錦囊妙計

Christopher Schmitt, Kyle Simpson

Publisher Resources

ISBN: 9789863470861