5 Replies Latest reply on Oct 20, 2011 8:59 PM by Shongrunden

    Flex Mobile ActionBar

    thiagollo

      Hello!

       

      I have a problem with ActionBar in Android.

      I don't make any change in css file or in the mxml, the problem is: the title for ActionBar is invisible, it cant be see. This hapen in the simulator and in the device.

       

      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

              xmlns:s="library://ns.adobe.com/flex/spark"

              xmlns:mx="library://ns.adobe.com/flex/mx"

              title="Title Test">

       

      Any sugestions???

       

      PS: Sorry for the english!

       

      Att,

      Thiago Oliveira

        • 1. Re: Flex Mobile ActionBar
          VivD

          I'm kind of new too to Fex too but just thought I'll drop in my 2 cents.

           

          Normally actionBarVisible is true by default I think but maybe you can explicitly set it to true and see if it makes a difference.

           

          <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

                  xmlns:s="library://ns.adobe.com/flex/spark"

                  xmlns:mx="library://ns.adobe.com/flex/mx"

                  actionBarVisible="true"

                  title="Title Test">

          • 2. Re: Flex Mobile ActionBar
            thiagollo Level 1

            Thanks VivD....

             

            But i have tried this, and did not work.

            In fact, i see the ActionBar, but the title dont appear, however the title property is set...

            Look the image:

             

            error.png

             

            Att,

            Thiago Oliveira

            • 3. Re: Flex Mobile ActionBar
              VivD Level 1

              Try adding the titleContent tag. Maybe just start with a fresh project and do it. Did it ever appear for you?

               

              <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

                      xmlns:s="library://ns.adobe.com/flex/spark"

                      xmlns:mx="library://ns.adobe.com/flex/mx"

                      actionBarVisible="true">

               

                   <s:titleContent>

                             <s:Label text="Testing">

                   </s:titleContent>

               

              </s:View>

              • 4. Re: Flex Mobile ActionBar
                thiagollo Level 1

                VivD,

                 

                Thanks again!

                 

                With your sugestion the title shows up.

                 

                <s:titleContent>

                     <s:Label text="Automação de Força de Venda" color="white" fontWeight="bold"/>

                </s:titleContent>

                 

                But, it only shows up if i set the property color, else, it dont show the title.

                This is so strange...

                I dont have any css file and do nothing... something in FlashBuilder  is happen!

                 

                Thank you!

                 

                Att,

                Thiago Oliveira

                • 5. Re: Flex Mobile ActionBar
                  Shongrunden Adobe Employee

                  It sounds like something is setting title to an empty string somewhere.  Can you reproduce this with a small sample project?