SlideShare a Scribd company logo
1 of 15
Flex Mobile Tuning




www.flashr.org Flex Mobile Tuning   1
Flex for Mobile – što nas muči


    Filozofija
    Tehnika




www.flashr.org Flex Mobile Tuning   2
Filozofija - ekran

  veličina

  različite                 dimenzije
  <autoOrients>

  <autoOrients>                    i tipkovnica
  StageWebView




www.flashr.org Flex Mobile Tuning        3
Filozofija - input

  TextInput

  TouchEvent

  GestureEvent
     Multitouch.inputMode =
     MultitouchInputMode.GESTURE
     MultitouchInputMode.TOUCH_POINT
    GPS
    Akcelerometar



www.flashr.org Flex Mobile Tuning   4
Filozofija – foto / video input

  Camera                   class
  CameraUI                         and CameraRoll klase
  MediaEvent                        i MediaPromise




www.flashr.org Flex Mobile Tuning            5
Filozofija – životni put aplikacije

  Rad            u pozadini i izlaz
  “Manual”                         početak i kraj
  Battery                 low
  Android                   background behavior
  iOS           background behaviour




www.flashr.org Flex Mobile Tuning             6
Filozofija – performanse

  Startup                 zadaci
  Rendering                        – BitmapData.draw()
  Memorija

        Background                    memory management
       X       = null




www.flashr.org Flex Mobile Tuning           7
Tehnikalije – itemRendereri

  LabelItemRenderer

  IconItemRenderer

       createChildren
       measure
       drawBackground
       layoutContents
       data setter
www.flashr.org Flex Mobile Tuning   8
Tehnikalije – slikice

  BitmapImage                      ispred Image
  Images                  – ContentCache
  Multiresolution                   images
  PNG             ispred JPG
  Styling

  FXG             + ActionScript skinning


www.flashr.org Flex Mobile Tuning         9
Tehnikalije – Layouts

  Out:

        HorizontalLayout

        VerticalLayout

  In:

        BasicLayout

        ConstraintLayout



www.flashr.org Flex Mobile Tuning   10
Tehnikalije – BasicLayout

 <s:BitmapImage id="icon" top="10" left="5" width="32"
   height="32" />
 <s:Label id="nameLabel" left="40" right="5" top="15"
   bottom="15" fontSize="12"/>
 <s:Label id="phoneNumberLabel" left="40" right="5"
   top="30" bottom="15" fontSize="10"/>




www.flashr.org Flex Mobile Tuning   11
Tehnikalije – ConstraintLayout
 <s:layout>
   <s:ConstraintLayout>
    <s:constraintColumns>
     <s:ConstraintColumn id="leftPaddingColumn" width="5"/>
     <s:ConstraintColumn id="iconColumn" width="32"/>
   ....
    </s:constraintColumns>
    <s:constraintRows>
      <s:ConstraintRow id="topPaddingRow" height="10"/>
      <s:ConstraintRow id="firstRow" height="16"/>
    </s:constraintRows>
   </s:ConstraintLayout>
 </s:layout>
 <s:BitmapImage id="icon" left="iconColumn:0" top="firstRow:0" width="32"
   height="32"/>
 <s:Label id="nameLabel" left="textColumn:0" right="textColumn:0"
   top="firstRow:5" fontSize="12"/>
 <s:Label id="phoneNumberLabel" left="textColumn:0" right="textColumn:0"
   bottom="secondRow:2" fontSize="10"/>




www.flashr.org Flex Mobile Tuning      12
Tehnikalije – Groups

  Out:

        BorderContainer

  In:

        Group

        FXG             grafika




www.flashr.org Flex Mobile Tuning   13
Tehnikalije – Views

  set         data umjesto creationComplete
        Broj           procesiranja
        Manje               bindinga
  viewActivate                     server-side calls
  includeIn

  excludeFrom



www.flashr.org Flex Mobile Tuning          14
Tehnikalije – informacije



        http://www.adobe.com/devnet/air/articles/considerations-air-apps-mobile.html


     http://www.adobe.com/devnet/flex/articles/flex-mobile-performance-checklist.html


      http://www.adobe.com/devnet/flash/articles/optimizing-mobile-performance.html




www.flashr.org Flex Mobile Tuning            15

More Related Content

Similar to FlasHR - Flex Mobile tuning

Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010Patrick Lauke
 
The awesome world of mobile front end engineering
The awesome world of mobile front end engineeringThe awesome world of mobile front end engineering
The awesome world of mobile front end engineeringDinis Carvalho
 
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Juliano Martins
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in MobileSVWB
 
Lesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid appsLesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid appsPatrik Malmquist
 
Building iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360FlexBuilding iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360Flexdanielwanja
 
Building a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profitBuilding a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profitBen Limmer
 
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015Innomatic Platform
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principlesmoduledesign
 
Material design basics
Material design basicsMaterial design basics
Material design basicsJorge Barroso
 
4.preference management
4.preference management 4.preference management
4.preference management maamir farooq
 
Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014Jan Jongboom
 
Developing Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelDeveloping Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelSpiffy
 
Optimizing Apps for Better Performance
Optimizing Apps for Better PerformanceOptimizing Apps for Better Performance
Optimizing Apps for Better PerformanceElif Boncuk
 
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGapFAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGapLoiane Groner
 
Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15sullis
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaChristian Heilmann
 

Similar to FlasHR - Flex Mobile tuning (20)

Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010
 
The awesome world of mobile front end engineering
The awesome world of mobile front end engineeringThe awesome world of mobile front end engineering
The awesome world of mobile front end engineering
 
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
Desenvolvendo uma aplicação híbrida para Android e IOs utilizando Ionic, aces...
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in Mobile
 
Lesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid appsLesson learned from 3 years with hybrid apps
Lesson learned from 3 years with hybrid apps
 
Building iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360FlexBuilding iPad apps with Flex - 360Flex
Building iPad apps with Flex - 360Flex
 
Android Starter Kit
Android Starter KitAndroid Starter Kit
Android Starter Kit
 
Building a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profitBuilding a Single Page Application using Ember.js ... for fun and profit
Building a Single Page Application using Ember.js ... for fun and profit
 
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
Building Multi-Tenant and SaaS products in PHP - CloudConf 2015
 
Lecture 4 display_principles
Lecture 4 display_principlesLecture 4 display_principles
Lecture 4 display_principles
 
Material design basics
Material design basicsMaterial design basics
Material design basics
 
Web app
Web appWeb app
Web app
 
4.preference management
4.preference management 4.preference management
4.preference management
 
Web app
Web appWeb app
Web app
 
Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014Firefox OS and the Internet of Things - NDC London 2014
Firefox OS and the Internet of Things - NDC London 2014
 
Developing Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelDeveloping Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris Ismael
 
Optimizing Apps for Better Performance
Optimizing Apps for Better PerformanceOptimizing Apps for Better Performance
Optimizing Apps for Better Performance
 
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGapFAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
FAESA CONENCO 2013: Sencha Touch 2 + PhoneGap
 
Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15Android 3.0 Portland Java User Group 2011-03-15
Android 3.0 Portland Java User Group 2011-03-15
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World Romania
 

More from Ivan Ilijasic

2012 02 html mobile development
2012 02 html mobile development2012 02 html mobile development
2012 02 html mobile developmentIvan Ilijasic
 
FlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igreFlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igreIvan Ilijasic
 
FlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novostiFlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novostiIvan Ilijasic
 
2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zasto2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zastoIvan Ilijasic
 
Razvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih AplikacijaRazvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih AplikacijaIvan Ilijasic
 
Ljubav Flexa I PHP-a
Ljubav Flexa I PHP-aLjubav Flexa I PHP-a
Ljubav Flexa I PHP-aIvan Ilijasic
 
Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009Ivan Ilijasic
 
Adobe Flash Collaboration Service
Adobe Flash Collaboration ServiceAdobe Flash Collaboration Service
Adobe Flash Collaboration ServiceIvan Ilijasic
 

More from Ivan Ilijasic (13)

Sencha Touch
Sencha TouchSencha Touch
Sencha Touch
 
Apache flex
Apache flexApache flex
Apache flex
 
2012 02 html mobile development
2012 02 html mobile development2012 02 html mobile development
2012 02 html mobile development
 
FlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igreFlasHR 12/2011 - Stage3D igre
FlasHR 12/2011 - Stage3D igre
 
FlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novostiFlasHR meeting 12/2011 - novosti
FlasHR meeting 12/2011 - novosti
 
2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zasto2011 12 flex_i_php_-_zasto
2011 12 flex_i_php_-_zasto
 
Adobe MAX 2011
Adobe MAX 2011Adobe MAX 2011
Adobe MAX 2011
 
Razvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih AplikacijaRazvoj Air Mobilnih Aplikacija
Razvoj Air Mobilnih Aplikacija
 
Adobe Max 2010
Adobe Max 2010Adobe Max 2010
Adobe Max 2010
 
Ljubav Flexa I PHP-a
Ljubav Flexa I PHP-aLjubav Flexa I PHP-a
Ljubav Flexa I PHP-a
 
Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009Osvrt Na Adobe Max 2009
Osvrt Na Adobe Max 2009
 
Adobe Flash Collaboration Service
Adobe Flash Collaboration ServiceAdobe Flash Collaboration Service
Adobe Flash Collaboration Service
 
Zasto Flex
Zasto FlexZasto Flex
Zasto Flex
 

Recently uploaded

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Recently uploaded (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

FlasHR - Flex Mobile tuning

  • 1. Flex Mobile Tuning www.flashr.org Flex Mobile Tuning 1
  • 2. Flex for Mobile – što nas muči  Filozofija  Tehnika www.flashr.org Flex Mobile Tuning 2
  • 3. Filozofija - ekran  veličina  različite dimenzije  <autoOrients>  <autoOrients> i tipkovnica  StageWebView www.flashr.org Flex Mobile Tuning 3
  • 4. Filozofija - input  TextInput  TouchEvent  GestureEvent Multitouch.inputMode = MultitouchInputMode.GESTURE MultitouchInputMode.TOUCH_POINT  GPS  Akcelerometar www.flashr.org Flex Mobile Tuning 4
  • 5. Filozofija – foto / video input  Camera class  CameraUI and CameraRoll klase  MediaEvent i MediaPromise www.flashr.org Flex Mobile Tuning 5
  • 6. Filozofija – životni put aplikacije  Rad u pozadini i izlaz  “Manual” početak i kraj  Battery low  Android background behavior  iOS background behaviour www.flashr.org Flex Mobile Tuning 6
  • 7. Filozofija – performanse  Startup zadaci  Rendering – BitmapData.draw()  Memorija  Background memory management X = null www.flashr.org Flex Mobile Tuning 7
  • 8. Tehnikalije – itemRendereri  LabelItemRenderer  IconItemRenderer createChildren measure drawBackground layoutContents data setter www.flashr.org Flex Mobile Tuning 8
  • 9. Tehnikalije – slikice  BitmapImage ispred Image  Images – ContentCache  Multiresolution images  PNG ispred JPG  Styling  FXG + ActionScript skinning www.flashr.org Flex Mobile Tuning 9
  • 10. Tehnikalije – Layouts  Out:  HorizontalLayout  VerticalLayout  In:  BasicLayout  ConstraintLayout www.flashr.org Flex Mobile Tuning 10
  • 11. Tehnikalije – BasicLayout <s:BitmapImage id="icon" top="10" left="5" width="32" height="32" /> <s:Label id="nameLabel" left="40" right="5" top="15" bottom="15" fontSize="12"/> <s:Label id="phoneNumberLabel" left="40" right="5" top="30" bottom="15" fontSize="10"/> www.flashr.org Flex Mobile Tuning 11
  • 12. Tehnikalije – ConstraintLayout <s:layout> <s:ConstraintLayout> <s:constraintColumns> <s:ConstraintColumn id="leftPaddingColumn" width="5"/> <s:ConstraintColumn id="iconColumn" width="32"/> .... </s:constraintColumns> <s:constraintRows> <s:ConstraintRow id="topPaddingRow" height="10"/> <s:ConstraintRow id="firstRow" height="16"/> </s:constraintRows> </s:ConstraintLayout> </s:layout> <s:BitmapImage id="icon" left="iconColumn:0" top="firstRow:0" width="32" height="32"/> <s:Label id="nameLabel" left="textColumn:0" right="textColumn:0" top="firstRow:5" fontSize="12"/> <s:Label id="phoneNumberLabel" left="textColumn:0" right="textColumn:0" bottom="secondRow:2" fontSize="10"/> www.flashr.org Flex Mobile Tuning 12
  • 13. Tehnikalije – Groups  Out:  BorderContainer  In:  Group  FXG grafika www.flashr.org Flex Mobile Tuning 13
  • 14. Tehnikalije – Views  set data umjesto creationComplete  Broj procesiranja  Manje bindinga  viewActivate server-side calls  includeIn  excludeFrom www.flashr.org Flex Mobile Tuning 14
  • 15. Tehnikalije – informacije http://www.adobe.com/devnet/air/articles/considerations-air-apps-mobile.html http://www.adobe.com/devnet/flex/articles/flex-mobile-performance-checklist.html http://www.adobe.com/devnet/flash/articles/optimizing-mobile-performance.html www.flashr.org Flex Mobile Tuning 15