Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11597

Android: Action bar displays differently based on launch orientation

    Details

      Description

      The Action bar doesn't appear to handle orientation changes correctly. For example, if I specify an action item (menu item) with an icon and

      showAsAction: Ti.Android.SHOW_AS_ACTION_ALWAYS|Ti.Android.SHOW_AS_ACTION_WITH_TEXT,
      

      The text shows up only if the app is launched in landscape orientation, and doesn't go away if the app is rotated into portrait orientation. On the other hand, if I launch the app in portrait, only the icon is displayed, even when I rotate into landscape.

      On a related topic, the app icon is displayed larger when I launch in landscape mode. It appears that we use two different sizes, one for the stacked action bar and one for the ordinary portrait-mode action bar. I'm not sure if this behavior is correct in the first place--I can't see a reference to it in the Android docs. However, both versions seem to be scaled differently based on whether it's launched in portrait or landscape, which is definitely wrong.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                aevans Arthur Evans
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14822
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration