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深入精要
190
|
第十二章:使用圖形化編輯器
[Page-194]
版面動作
在畫布的最上方有兩列按鈕,上面那列是組態選擇器(查看第
193
「組態選擇器」),
下面那列是版面動作按鈕列(圖
12-5
),這按鈕列具與當下選擇的
view
與父檢視元件
有關內容的相關性選項(表示它們會根據目前的選擇而改變)。
這裡包含一些可以改變
gravity
layout_width
layout_margins
屬性的常見選項;
例如在圖
12-5
中,我選擇一個在
LinearLayout
裡的按鈕,則按鈕列顯示與
LinearLayout
有關的動作,例如改變方向從垂直到水平的切換按鈕;其他可用選項可能包括控制指
定子檢視元件如何對齊、控制子版面佈局屬性的動作(如
layout_width
)或是用來改
變佈局
margin
的按鈕。
12-5
查看可用的版面選項
內容相關性功能表
當你在畫布中的任何元素上點右鍵,你可能會對那些隱藏的功能感到驚訝,你會看到
一個帶有內容相關性選項的功能表(如圖
12-6
,這些選項提供多種有用功能的捷徑,
包括:
改變控制項屬性,包括一個瀏覽
Android
原始碼裡
Java
套件結構的選單(作為
全面的屬性編輯器的另一選擇,第
192
頁「屬性編輯器」)。
產生或預覽動畫;若你已在一個元件上啟用動畫,則可以在畫布上檢視動畫。
大綱檢視畫面
|
191
[Page-195]
執行我們在第
172
頁「重構選單」裡介紹的大部分重構方法。
匯出含有
app
預覽的螢幕擷取畫面,這會以你正在顯示的裝置來繪製。 ...
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