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

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Narciso (nj) Jaramillo

Building Multi-Density and Multi-Platform UIs with Flex

Soubor PDF · ·

Tisk

Tisknout dokument

Sdílení

Shrnutí obsahu

Strana 1 - Narciso (nj) Jaramillo

Narciso (nj) Jaramillo Building Multi-Density and Multi-Platform UIs with Flex

Strana 2 - Calibrating…

Calibrating… Have a touchscreen smartphone (Android, iOS, other)? Have a touchscreen tablet (Android, iOS, other)? Know what a ViewNavigator is? Used…

Strana 3 - Overview

Overview Challenges in multiscreen development Designing adaptive UI for multiple mobile screens Building adaptive UI using Flex

Strana 4 - Overall app architecture

What I won’t be covering in depth New mobile app components (ViewNavigator, ActionBar, ViewMenu) Overall app architecture Code sharing between mobile…

Strana 5

Challenges in multiscreen development

Strana 6 - What does multiscreen mean?

What does multiscreen mean? 6 Pixel densities Form factors UI and hardware conventions 240 dpi 160/320 dpi

Strana 7

Leveraging Flex 4.5 for multiscreen mobile UI development 7 Classic Flex features Core Spark components Dynamic layout States and state groups Mobile…

Strana 8

Designing adaptive UI for multiple mobile screens

Strana 9 - Know your app

Before you design… Know your platforms Platform UI guidelines | Great apps | UI pa erns Know your devices Screen resolutions | Pixel densities |…

Strana 12

Example: Floupon – a Groupon browser

Strana 13

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…

Strana 15

Floupon: Tablet version (landscape)

Strana 16

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. Floupon: Tablet version (portrait)

Strana 17

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. Floupon: Tablet version (portrait)

Strana 18

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Con dential. Floupon: Tablet version (portrait)

Strana 19

Building adaptive UI with Flex: Phone vs. tablet

Strana 20

Floupon: Separate phone and tablet apps 20 ViewNavigatorApplication List ActionBar ViewNavigator

Strana 21

Floupon: Uni ed phone and tablet app 21 ViewNavigator List ActionBar ViewNavigator

Strana 22 - Handling the Back key

Handling the Back key private function initializeHandler(event:Event):void { systemManager.stage.addEventListener(KeyboardEvent.KEY_DOWN…

Strana 23

Using states to handle layout variations private function resizeHandler(event:ResizeEvent):void { var isPortrait:Boolean = height > width; var…

Strana 24 - Using state groups

Using state groups <states> <State name="portraitPhone" stateGroups="portrait,phone"/> <State name="landscapePhone" stateGroups="landscape,phone"/>…

Strana 25 - Managing states in views

Managing states in views private function handleViewActivate(): void { setCurrentState(getCurrentViewState()); } override public function…

Strana 26

DEMO: Floupon running on Droid Pro, iPad (portrait/landscape).

Strana 27

Building adaptive UI with Flex: Density management

Strana 28

DEMO: App designed for 160 dpi running on Droid 2, iPhone 4 with no autoscaling.

Strana 29

CHEAT SHEET: How to deal with density Set applicationDPI=“160” on your application tag Lay out your application for a 160 dpi device Use…

Strana 30 - 150 x 40 pixel buon

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
Strana 31 - 3.5” diagonal screen

Another perspective 31 3.5” diagonal screen Same physical size, di erent pixel counts

Strana 32

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…

Strana 33 - Scaled 1.5x Scaled 2x

Solution: Automatic scaling for di erent DPIs 33 <Application applicationDPI=“160”> <Button width=“160” height=“40”/> </Application> REMEMBER: To your…

Strana 34 - Resolution and density

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…

Strana 35 - (Droid 2, iPhone 4)

DEMO: App running on device with proper autoscaling (Droid 2, iPhone 4).

Strana 36 - Ipsum

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…

Strana 37 - (on desktop)

DEMO: Refresh bu on icon without MultiDPIBitmapSource (on desktop).

Strana 38 - (e.g. 32x32, 48x48, 64x64)

Flex density concepts: Multi-DPI bitmaps <Button click="dealSummaryList.refresh()"> <icon> <MultiDPIBitmapSource…

Strana 39

DEMO: Refresh bu on icon with MultiDPIBitmapSource.

Strana 40 - 320 DPI

Default mapping for DPI classi cations 40 Classi cation 160 DPI Devices Most tablets iPhone 3GS Motorola Droid Pro Mapped range < 200 DPI Typical…

Strana 41 - CHEAT SHEET revisited

CHEAT SHEET revisited Set applicationDPI=“160” on your application tag Lay out your application for a 160 dpi device Use MultiDPIBitmapSource for all…

Strana 42 - Manual DPI management

Manual DPI management Leave applicationDPI unset (will default to same as runtimeDPI) Built-in component skins in mobile theme will adapt to di erent…

Strana 43

Building adaptive UI with Flex: Multiple platforms

Strana 44 - Android phone

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…

Strana 45 - Per-platform style rules

Per-platform style rules @media (os-platform: "ios") { ActionBar { defaultButtonAppearance: "beveled”; titleAlign: "center”; } }

Strana 46

Using states for platform di erences <states> <State name="androidPhone" stateGroups="phone"/> <State name="androidTablet" stateGroups="tablet"/>…

Strana 47

DEMO: App running on iPhone/iPad compared to Droid 2/Galaxy Tab.

Strana 48

Other common platform di erences 48 Android Menu bu on (use ViewMenu) Longpress menu (use List, SkinnablePopup Container) iOS Bo om toolbar (can use…

Strana 51 - Test on desktop or on device

Key takeaways Design for multiple screens Resolution | Orientation | Density | Platform Use states to handle layout and platform variations Use…

Strana 52 - What next?

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... ……

Strana 53

© 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í.

Položit otázku

Odpovídáme podle návodu a uvádíme stranu. Otázka se na webu zobrazí po kontrole.

Všechny otázky a odpovědi ›

Související produkty a manuály pro Software MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES