Customizing the Look of Mobile Flex
Upcoming SlideShare
Loading in...5
×
 

Customizing the Look of Mobile Flex

on

  • 3,153 views

 

Statistics

Views

Total Views
3,153
Views on SlideShare
3,153
Embed Views
0

Actions

Likes
0
Downloads
44
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Customizing the Look of Mobile Flex Customizing the Look of Mobile Flex Presentation Transcript

  • Customizing theLook of MobileFlex
  • Agenda• Design Considerations• CSS vs Skinning• Introduction to Skinning• Conclusions
  • DESIGN CONSIDERATIONS
  • Work witha designer
  • 640x920Start asHighResolutionas possible
  • Scale Down
  • • Custom graphics look like crap if you design for too small a screen. • But smaller DPIDeal with devices are usually less powerfulDPI meaning pushing around larger images is ineffiecient
  • • Get PSD • Pull into to Fireworks • Use Fireworks to export pngs andDealing with jpgs.PSD’s
  • SKIN VS CSS
  • CSS• Font Changes – Family – Color – Size• Flex UI Changes – Color – Flex CSS Properties
  • Skinning• Changing Behavior• Radical change in look and feel• Implementation of custom graphics
  • CONCEPTS
  • Performance iskey
  • ActionScriptComponentsPerform Best
  • Almost all ofyour skins willbe ActionScript Skins
  • What I use CSS for• As much font selection as possible• Class specifications
  • Why?
  • setStyle is relativelyexpensive
  • SKIN LIFECYCLE
  • Important Methods• Constructor – Very beginning – No Children available – Good for manipulating “this” and setting variables• onChildrenCreate – After everything is done setting up – Good for set once display properties• layoutContents – After any thing that requires a redistribution of elements – Good for reacting to location and content changes
  • Final ThoughtBefore we get intoComponents
  • I break everybest practice
  • CLASSES YOU NEED TOKNOW
  • StylableTextField• Lightweight• Can be Styled• Can used for editable and static text• It can’t be used in MXML markup though
  • BitmapImage• Lightweight image component• Doesn’t have ability to load dynamic content… yet.• This is fine, skin assets should be embedded• Fast performing
  • SkinableComponent• Like a Group, but you can skin it.
  • IconItemRenderer• High performance renderer• Handles a lot of cases.• Can be extended.
  • WORKING WITHCOMPONENTS
  • Starting
  • Finishing
  • APPLICATION
  • Compare
  • Skinning Application
  • Assigning a Skin in CSSs|ViewNavigatorApplication{ skinClass: ClassReference("skins.AppSkin");}
  • Why• Prevents you from cluttering up Flex with presentational information
  • Dealing with DPIswitch (applicationDPI){ case 320: { break; } case 240: { break; } default: { break; }}
  • WORKING WITH FONTS
  • Font Recap• There are 2 font rendering engines in Flash• This means 2 ways of embedding fonts – TLF – NonTLF• Most Mobile components use NonTLF• Label uses TLF
  • Consequence• You have to embed both TLF and NonTLF fonts• You can do this with Metadata• I’ve never done it that way• Because Flash Professional makes this very easy
  • Embedding fonts withFlash Professional
  • BUTTON
  • Compare
  • Skinning Button
  • CONCLUSIONS
  • BEAUTY
  • Why care about beauty?
  • Beauty is the differencebetweenApps people have to use Apps people want to use
  • Beauty is the differencebetweenApps people have to use Apps people want to use
  • Finicky
  • Typical Process• Do as much in css as possible• Drop to skins• Remove the background• Slap in graphics• Account for DPI• Account for redraws
  • Good resources• Deep Dive Into Flex Mobile Item Renderers – http://www.slideshare.net/JasonHanson/deep- dive-into-flex-mobile-item-renderers-7501594• Jason San Jose – http://www.adobe.com/devnet/flex/articles/mobile- skinning-part1.html – http://www.adobe.com/devnet/flex/articles/mobile- skinning-part2.html – http://www.adobe.com/devnet/flex/articles/mobile- skinning-part3.html• Holly Schinsky – http://devgirl.org/2011/05/09/styling-the-flex-4-5- mobile-application-tabs-and-actionbar/
  • Follow up?• Feel free to contact me – terry.ryan@adobe.com – http://terrenceryan.com – Twitter: @tpryan