MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES Uživatelský manuál
Procházejte online nebo si stáhněte Uživatelský manuál pro Software MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES. Building Multi-Density and Multi-Platform UIs with Flex [en] Uživatelská příručka
Narciso (nj) Jaramillo
Building Multi-Density and Multi-Platform UIs with Flex
Soubor PDF · ·
Shrnutí obsahu
Narciso (nj) Jaramillo Building Multi-Density and Multi-Platform UIs with Flex
Calibrating… Have a touchscreen smartphone (Android, iOS, other)? Have a touchscreen tablet (Android, iOS, other)? Know what a ViewNavigator is? Used…
Overview Challenges in multiscreen development Designing adaptive UI for multiple mobile screens Building adaptive UI using Flex
What I won’t be covering in depth New mobile app components (ViewNavigator, ActionBar, ViewMenu) Overall app architecture Code sharing between mobile…
Challenges in multiscreen development
What does multiscreen mean? 6 Pixel densities Form factors UI and hardware conventions 240 dpi 160/320 dpi
Leveraging Flex 4.5 for multiscreen mobile UI development 7 Classic Flex features Core Spark components Dynamic layout States and state groups Mobile…
Designing adaptive UI for multiple mobile screens
Before you design… Know your platforms Platform UI guidelines | Great apps | UI pa erns Know your devices Screen resolutions | Pixel densities |…
UI pa erns: Phones
UI pa erns: Tablets
Example: Floupon – a Groupon browser
Example: Floupon – a Groupon browser Information Deals for current location Info on a speci c deal Discussions for a given deal User tasks Refresh the…
Floupon: Phone version
Floupon: Tablet version (landscape)
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. Floupon: Tablet version (portrait)
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. Floupon: Tablet version (portrait)
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. Floupon: Tablet version (portrait)
Building adaptive UI with Flex: Phone vs. tablet
Floupon: Separate phone and tablet apps 20 ViewNavigatorApplication List ActionBar ViewNavigator
Floupon: Uni ed phone and tablet app 21 ViewNavigator List ActionBar ViewNavigator
Handling the Back key private function initializeHandler(event:Event):void { systemManager.stage.addEventListener(KeyboardEvent.KEY_DOWN…
Using states to handle layout variations private function resizeHandler(event:ResizeEvent):void { var isPortrait:Boolean = height > width; var…
Using state groups <states> <State name="portraitPhone" stateGroups="portrait,phone"/> <State name="landscapePhone" stateGroups="landscape,phone"/>…
Managing states in views private function handleViewActivate(): void { setCurrentState(getCurrentViewState()); } override public function…
DEMO: Floupon running on Droid Pro, iPad (portrait/landscape).
Building adaptive UI with Flex: Density management
DEMO: App designed for 160 dpi running on Droid 2, iPhone 4 with no autoscaling.
CHEAT SHEET: How to deal with density Set applicationDPI=“160” on your application tag Lay out your application for a 160 dpi device Use…
Multiple densities: e problem 30 150 x 40 pixel bu on Desktop monitor @100 dpi = 1.5” x 0.4” Galaxy Tab @160 dpi = 0.9” x 0.25” Droid 2 @240 dpi =…
Zobrazit všech 53 stran
Another perspective 31 3.5” diagonal screen Same physical size, di erent pixel counts
Can I use dynamic layout to solve this? 32 (Not easily. You can make stu ll the screen using percent sizing, but your fonts and icons will still be…
Solution: Automatic scaling for di erent DPIs 33 <Application applicationDPI=“160”> <Button width=“160” height=“40”/> </Application> REMEMBER: To your…
Resolution and density 34 Droid Pro 320 x 480 @160dpi Droid 2 480 x 854 @240dpi iPhone 4 640 x 960 @320dpi = 320 x 570 @160dpi = 320 x 480 @160dpi Use…
DEMO: App running on device with proper autoscaling (Droid 2, iPhone 4).
Scaling di erent types of objects 36 Vectors scale up well (scaling down can be bad) Outlines may blur slightly Text scales up well (Flash scales font…
DEMO: Refresh bu on icon without MultiDPIBitmapSource (on desktop).
Flex density concepts: Multi-DPI bitmaps <Button click="dealSummaryList.refresh()"> <icon> <MultiDPIBitmapSource…
DEMO: Refresh bu on icon with MultiDPIBitmapSource.
Default mapping for DPI classi cations 40 Classi cation 160 DPI Devices Most tablets iPhone 3GS Motorola Droid Pro Mapped range < 200 DPI Typical…
CHEAT SHEET revisited Set applicationDPI=“160” on your application tag Lay out your application for a 160 dpi device Use MultiDPIBitmapSource for all…
Manual DPI management Leave applicationDPI unset (will default to same as runtimeDPI) Built-in component skins in mobile theme will adapt to di erent…
Building adaptive UI with Flex: Multiple platforms
UI di erences across platforms 44 Android phone iPhone Title le -aligned Title centered No back bu on On-screen back bu on Flat-look bu ons Beveled bu…
Per-platform style rules @media (os-platform: "ios") { ActionBar { defaultButtonAppearance: "beveled”; titleAlign: "center”; } }
Using states for platform di erences <states> <State name="androidPhone" stateGroups="phone"/> <State name="androidTablet" stateGroups="tablet"/>…
DEMO: App running on iPhone/iPad compared to Droid 2/Galaxy Tab.
Other common platform di erences 48 Android Menu bu on (use ViewMenu) Longpress menu (use List, SkinnablePopup Container) iOS Bo om toolbar (can use…
Know your platforms!
Conclusion
Key takeaways Design for multiple screens Resolution | Orientation | Density | Platform Use states to handle layout and platform variations Use…
What next? Watch my blog: rictus.com/muchado for slides and code Follow me on Twi er: @rictus Look forward to Android support in the May release... ……
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential.
Další dokumenty pro Software MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES
Otázky k MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES
K tomuto návodu zatím nejsou žádné otázky. Položte první.
Související produkty a manuály pro Software MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES
- Software MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Uživatelský manuál
(83 stránek) - Software MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Uživatelský manuál
(38 stránek) - Software MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Uživatelský manuál
(84 stránek) - Software MACROMEDIA COLDFUSION MX 61-CFML Technické informace
(152 stránek) - Software MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Uživatelský manuál
(11 stránek) - Software MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Specifikace
(35 stránek) - Software MACROMEDIA DREAMWEAVER 8-GETTING STARTED WITH DREAMWEAVER Uživatelský manuál
(13 stránek) - Software MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES Uživatelský manuál
(36 stránek) - Software MACROMEDIA DREAMWEAVER 8-GETTING STARTED WITH DREAMWEAVER Uživatelský manuál
(66 stránek) - Software MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Uživatelská příručka
(256 stránek)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53