Dev air Alpha, beta: Actionbar

Someone here has already tried using the ActionBar in beta yet?  I used the following code and looks like the screen is down approximately 1/3 of the way and with the actionBar medium to big defaultand go off the screen.

package{    import flash.display.Sprite;    import flash.system.Capabilities;

    import qnx.fuse.ui.actionbar.ActionBar;    import qnx.fuse.ui.core.Action;    import qnx.fuse.ui.core.Container;

    public class AIR_MenuTest extends Sprite{

        public static var ScreenWidth:int = Capabilities.screenResolutionX;        public static var ScreenHeight:int = Capabilities.screenResolutionY;        private var cont:Container = new Container();

        private var actionsForBar:Vector. = new Vector.;

        public function AIR_MenuTest(){

            cont.setActualSize(ScreenWidth, ScreenHeight);            cont.setPosition(0, 0);            trace("X: " + cont.x + ", Y: " + cont.y);

            var back:Sprite = new Sprite();            back.graphics.beginFill(0x00A000);            back.graphics.drawRect(0,0,cont.width, cont.height);            back.graphics.endFill();            addChild(cont);

            cont.background = back;

            var actBar:ActionBar = new ActionBar();

            actBar.setPosition(0, 0);            actBar.width = ScreenWidth;

            actBar.showBackButton();

            for(var i:int = 0; i < 4; i++){                actionsForBar.push( new Action("A" + (i+1)));            }

            actBar.addActionsAt(actionsForBar,0);

            cont.addChild(actBar);

        }

    }}

Maybe I'm setting something wrong?

Thanks in advance

PS: anyone who has used the Crosscut menu yet either?

You must set the position of the action bar. It does not automatically put at the bottom of the screen.

Tags: BlackBerry Developers

Similar Questions

  • Inability to run the application in the new DEv OS ALPHA BETA 3

    Hello, I have problems when I run my application with the new BETA 3 version. Change the construcion R6 R9 errors. Built the application trying to run it on my device but DEV ALPHA, install the application and I starts to open it but then it closes.

    In the console, I see this error:

    PVR: (warning): initContext: ignore the type of buffer CBUF_TYPE_PDS_VERT_SECONDARY_PREGEN_BUFFER [778 / eglglue.c]

    And the "bar - descriptor.xml" if poster 'element 'action' is deprecated. Use the permission instead " "

    Who can help me?

    Thank you!

    I had the same problem with my app Beta 2 when I upgraded to Beta 3. The problem was with some tags QML are removed the new SDK. The new beta 3, no console shows like not connect from the device in the IDE so, essentially, you can't tell where the QML breaks.

    You can ssh to the device from the IDE using the instructions found this thread:

    http://supportforums.BlackBerry.com/T5/Cascades-development/unresolved-symbol-errors-when-attempting...

    and then you will be able to see what QML tag moves to the top of the application and correct if all goes well.

    I hope this helps.

  • How to upgrade Dev C alpha to the latest version

    Hi guys

    the latest OS update version available for Dev Alpha C is 10.1.0.1485. (https://developer.blackberry.com/blackberry10devalpha/devalpha_update.html)

    However, actual devices can be updated to 10.1.0.4181. As far as I know dev devices alpha can only be updated through automatic charger provided here: https://developer.blackberry.com/blackberry10devalpha/devalpha_update.html

    BlackBerry link or update on the device in the settings menu is not possible for alpha machines.

    Does anyone know how to upgrade the alpha machines to the latest version of the OS that is available for actual devices?

    Use this: OS10 upgrade using the automatic charger devices

    lunaplena wrote:

    There should be updates options in the device.

    lunaplena, there are options.

  • Dev device alpha!

    I dev unit alpha, I insert a valid sim card into it and call from another device, the phone rings but the incoming call window does not appear... What's the prob in the phone... How can I solve it

    The phone application is not available on the alpha of dev at the moment. You will not be able to respond to calls on the subject.

  • QT 5 alpha/beta for PlayBook anyone?

    Is this someone is built with the success of the alpha/beta 5 Qt for PlayBook Windows libs?

    Could not generate the project. Even manually pointing to include files, for the simple application of QWidget, does not load QApplicaton. I followed this guide http://qt-project.org/wiki/Building_and_Deploying_Qt_Applications_to_the_Playbook but without success.

    ====

    Edit:

    Fixed, just added QT += widgets for .pro file and compiles well.

  • BB10 dev unit alpha has not started

    Hello

    BB10 dev unit alpha is not started. When I plug the unit with the charger it show only red lights are flashing. same thing happen since the last day. I plug the charger since yesterday afternoon, but the device is not started.

    My device is not started after one and a half day. Now, it started after the reinstallation of the OS and the upgrde to 10.0.6

  • Adobe AIR 22 beta (April 6, 2016), 'Download AIR SDK &amp; compile for Windows' file does not? After I download and visualize the 'air - SDK - description.xml', the version is 21?

    Adobe AIR 22 beta (April 6, 2016), 'Download AIR SDK & compile for Windows' file does not? After that I have download and view the 'air - SDK - description.xml',

    < name > AIR 21.0.0 < / name >

    < version > 21.0.0 < / version >

    Hello

    We have fixed this problem. Please download a second time to get 22 AIR beta build.

    Thank you

    Krati

    Adobe AIR Team

  • BlackBerry 10 Dev Simulator Alpha uninstall?

    I feel a little embarrassed to ask this, but how to uninstall the Blackberry 10 Dev Alpha Simulator under Windows? There seems to be no functionality uninstaller for it... Is it just a case of delete the VM files that have been copied to the C:\Users\Pete\Documents\Virtual Machines?

    My laptop six year cannot run the virtual machine (no 3D acceleration support), so the Simulator is useless for me.

    Thank you

    Pete

    Hey Lester,

    Bryce is correct in his response that the Dev Alpha Simulator installer will extract just the Simulator BlackBerry10Simulator-Installer-BB10_0_04 to your virtual computers folder. Delete your folder C:\Users\Pete\Documents\Virtual Machines will remove the installation of Simulator.

  • Dev Simulator Alpha will not be in development mode

    I got the SDK all together towards the top and set up a small test program.

    When I go into the virtual machine and load the Simulator alpha Dev it shows no icon for DEV mode.

    I followed the instructions at least try to (his wonder of goto, the icon at the top right which seems flickr to) and asks to goto settings, which is the only icon without a gray box behind it, nothing past goes just to the main screen) so I use the settings icon located on the home page. Go to menu french in mode security/dev / put the dev mode and no password promt. When I go back to main screen no dev mode icon and find the custom SDK.

    Just when I thought I was making progress.

    Any thoughts?

    I think you should do a clean reinstall or boot the virtual machine from scratch. Sometimes, there will be bugs in this form.

  • using the AIR SDK Beta 10 camera

    Hello

    I try to transfer my playbook to the BB10 sdk air application. It seems rather easy. But I have a problem of access to the camera. I wonder if it's a bug or a feature missing from the current beta.

    The way I access the camera is quite standard:

    : camera var = Camera.getCamera ();

    ...

    camera.setMode (800, 400, 15, true);

    Video: video of var = new Video (camera.width, camera.height);

    video.attachCamera (camera);

    addChild (video);

    When debugging I get the object camera but it not to broadcast anything (fps = 0).

    Thank you for your help,

    Toby

    I fixed it! In fact, I used

    camera.setMode (1024,600,15)

    When you switch to a different mode the camera image is displayed correctly.

  • dev device alpha ├a useless State

    After I restore my device dev alpha and passing through the facility, I now have the following situation:

    on the home screen, there are just the browser window. Drag to the bottom of the home screen displays 5 options (settings, Bluetooth, Silent Mode, blocking of the Rotation and Wi - Fi). Settings touch does nothing (except for the menu drop-down). The settings icon is grey behind it, as do the four other icons. Therefore, cannot turn the unit in developer mode, and I'm basically stuck. Everyone has been here before?

    Tour outside of the device was bricked. Running the resolved autoloader.

  • WebWorks + bbui.js Dev app Alpha does not respond to tap

    Hi guys

    I just installed my webworks + bbui - 0.9.4.js app on my dev alpha.

    When I run my application, the first page that appears to me is login: a text field for email, a password and a "submit" button.

    But when I type on items no answer by dev alpha, not keyboards appear and present the button does not work.

    If I test this app on ripple through browsers it works fine

    Any ideas?

    Here is the html code of the page:


    Use your Producteev.com account




    E-mail


    value = "" id = "login_email" size = "25" > "


    Password


    value = "" id = "login_pwd" size = "25" > "




    OnClick is "document.getElementById('buttSubmit'). Click () "> Connect"





    TNX

    MY

    If you are using the most recent operating system on your Dev Alpha, it seems that you may be packing with a former SDK.

    Make sure you use 1.0.3.8 SDK or this problem will occur.

    You can download the new SDK form here, https://developer.blackberry.com/html5/download/

  • Flash on BB10 Dev unit Alpha crashes!

    I tested the photo BB10 Dev Alpha device API, whenever you select the FLASH on the camera, it hangs, is this limited to my device or other?

    Please test this feature on your camera and get back on the result.

    Kind regards

    This is a known issue:

    https://Twitter.com/xitijpatel/status/271411654435172353

  • AIR 20 Beta (7 dec)

    The notes have been created for the latest beta?

    Any news on the 64 bit version of Windows? I'm looking forward to test it and help if I can.

    Best regards

    Leo

    Hello

    Yes, in this beta, we have upgraded to the latest iOS SDK, see details @ http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air20_flashplayer20_releasenot es.pdf

    On the subject of Android TV, it should be available in each beta release builds, but it wasn't available in beta 7 Dec due to unavoidable reasons, excuses for this. Please, pay attention to the our next beta in the next few days.

    -Thank you

    Pahup

    Adobe AIR Team

  • AIR 18 Beta 'firstLine parameter must be non-null' error

    I have an error that is Adobe AIR 18.0.0.96 and 18.0.0.109 on android and ios below.

    But same project works very well with air 17.0.0.144 on android and ios.

    Unfortunately I can't send you any file reproducible sample because I met this error to a great project and I don't know how I can reproduce the problem.

    I hope that you understand the problem of the screenshot of the error.

    Thank you.

    error.png

    the bug has been fixed in the latest beta (18.0.0.130) on the Labs page.

    Thank you.

Maybe you are looking for