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深入精要
直接編輯
XML
檔案
|
171
[Page-175]
11-6 XML
編輯器:插入新項目
第二種,這讓你在本地或系統端找到資源並套用在
UI
上,這些數值可能包括顏色定
義、字串值、樣式定義,或是其他佈局的元件;圖
11-7
裡的例子顯示此工具提供一個
可用的屬性值列表。
172
|
第十一章:操作使用者介面工具
[Page-176]
11-7 XML
編輯器:添加
API
屬性
重構選單
此工具讓你可以快速地完成重構操作;這些操作包括移除佈局元素、包覆多個控制項
到新的排版佈局中、提取
XML
程式碼至新的佈局檔案而可以被多個資源檔案重複利
用。要開啟此選單,先選定你想重構的元素的起始標籤,接著在上方選單工具列中點
Refactor
選單,它提供多種選項,其中一些我們已在
IDE
章節中介紹(第
66
頁「重
構(
Refactor
)選單」)。這裡介紹一些與佈局相關的選項:
[Page-177]
改變排版佈局(
Change layout
這使你可以更改排版佈局,並且自動地重新呈現在畫布(
canvas
)上;若你因為
目前排版佈局的限制而需要轉換至其他排版佈局時,這功能會很有幫助(例如,
你需要比
LinearLayout
更精細地控制排版)。
直接編輯
XML
檔案
|
173
改變控制項(
Change widget ...
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