• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Flex Mobile Projet - ActionBar position

Guest
Jul 12, 2011 Jul 12, 2011

Copy link to clipboard

Copied

Hi, I have created a Flex mobile project, with ViewNavigatorApplication layout.  I want to position the ActionBar in the bottom of the app, rather than the default top aligned. How can I do that?

I tried by setting the this.navigator.actionBar.y = 300; in the creationComplete of the application, but as I navigate to any other view, it jumps back to top.

Please suggest.

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 13, 2011 Jul 13, 2011

Copy link to clipboard

Copied

LATEST

If you can't find a better solution, extend the View class and add the code to this extended view. All your view will then have to extend this view.

You would have to add something like navigator.actionBar.y = FlexGlobals.topLevelApplication.height - navigator.actionBar.height; in the creationCompleteHandler (i would use a callLater because your change will be overwrited by the view_creationCompleteHandler) and in the viewActivate Handler. The navigator will always flash at the top when you switch view... It's why I hope you'll find a better way to do it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines