Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Activity & View
Search
saulpower
March 10, 2014
Technology
0
56
Activity & View
Learn the basics of Android's Activity and View concepts
saulpower
March 10, 2014
Tweet
Share
More Decks by saulpower
See All by saulpower
Custome Views
saulpower
0
46
Drawables & Animations
saulpower
0
50
View Wiring, Intents, Manifest
saulpower
0
39
Other Decks in Technology
See All in Technology
AWS資格は取ったけどIAMロールを腹落ちできてなかったので、年内に整理してみた
hiro_eng_
0
230
持続可能なアクセシビリティ開発
azukiazusa1
4
140
ある編集者のこれまでとこれから —— 開発者コミュニティと歩んだ四半世紀
inao
5
3.2k
Service Monitoring Platformについて
lycorptech_jp
PRO
0
180
[mercari GEARS 2025] Keynote
mercari
PRO
1
280
LINEスキマニ/LINEバイトにおけるバックエンド開発
lycorptech_jp
PRO
0
210
生成AIではじめるテスト駆動開発
puku0x
0
120
手を動かしながら学ぶデータモデリング - 論理設計から物理設計まで / Data modeling
soudai
PRO
24
5.8k
米軍Platform One / Black Pearlに学ぶ極限環境DevSecOps
jyoshise
2
420
旧から新へ: 大規模ウェブクローラの Perl から Go への移行 / YAPC::Fukuoka 2025
motemen
3
930
第65回コンピュータビジョン勉強会
tsukamotokenji
0
150
プログラミング言語を書く前に日本語を書く── AI 時代に求められる「言葉で考える」力/登壇資料(井田 献一朗)
hacobu
PRO
0
170
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Building Adaptive Systems
keathley
44
2.8k
Documentation Writing (for coders)
carmenintech
76
5.1k
4 Signs Your Business is Dying
shpigford
186
22k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
A Modern Web Designer's Workflow
chriscoyier
697
190k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.3k
Transcript
Learn Android Activities & Views
Goals Create an Activity Create an XML Layout
Activity Basic Building Block Lifecycle State View Controller
Activity Transition Between Activities Phone Calls App Killed
Activity State Bundle onSaveInstanceState() onRestoreInstanceState()
Activity XML Layouts Compiled at build Views & ViewGroups Custom
Views setContentView()
View Hierarchy Views & View Groups Required: Width & Height
dp, px, pt wrap_content match_parent Layout Engine Measure Pass Layout Pass
Views Widgets TextView Displaying text EditText Input text Button
ViewGroups Widget Container LinearLayout Stack Vertical/Horizontal (orientation) Weight 33
ViewGroups Widget Container LinearLayout Stack Vertical/Horizontal (orientation) Weight RelativeLayout Relative
to parent or children Overlap Nesting