MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES Instrukcja Użytkownika Strona 23

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 53
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 22
© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Condential.
Using states to handle layout variations
private function resizeHandler(event:ResizeEvent):void!
{!
!var isPortrait:Boolean = height > width;!
!var isTablet:Boolean = height > 960 || width > 960; !
!currentState = (isPortrait ? "portrait" : "landscape") +!
!!!(isTablet ? "Tablet" : "Phone");!
}!
23
<ViewNavigator id="mainNavigator" !
!left="0" left.landscapeTablet="{LIST_WIDTH}" !
!top="0" top.portraitTablet="{ACTIONBAR_HEIGHT + LIST_HEIGHT}" !
!right="0" bottom="0"!
!firstView="views.SummaryView"
!firstView.landscapeTablet="views.DetailView”!
!firstView.portraitTablet=“views.DetailView”!
/> !
Przeglądanie stron 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 52 53

Komentarze do niniejszej Instrukcji

Brak uwag