Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add a Search Bar to a Flash Builder Mobile app for Android?
    primarykey
    data
    text
    <p>I am trying to add a Search / Filter feature to my android application. I will provide a screen shot and a copy of the coding so that you may see exactly what I am trying to get at here. I am not sure what is the best approach to go about this.</p> <pre><code>`&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="iCalculate"&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;s:layout&gt; &lt;s:VerticalLayout paddingTop="10"/&gt; &lt;/s:layout&gt; &lt;fx:Script&gt; &lt;![CDATA[ import spark.components.Image; import spark.components.ViewMenu; import spark.events.IndexChangeEvent; protected function calcList_changeHandler(event:IndexChangeEvent):void { // This method contains the selection assignments for the Calculator Views if(calcList.selectedIndex == 0)//A1c Calculator { navigator.pushView(views.A1CCalculator); } else if (calcList.selectedIndex ==1)//BMI Calculator { navigator.pushView(views.BMI_Calculator); } else if (calcList.selectedIndex ==2)//GPA Calculator { navigator.pushView(views.GPA_Calculator); } else if (calcList.selectedIndex ==3)//TIP Calculator { navigator.pushView(views.TipCalculator); } } ]]&gt; &lt;/fx:Script&gt; &lt;s:Label color="#1021C7" text="Welcome to iCalculate (4)" textAlign="center" verticalAlign="middle" click="navigator.pushView(views.CompanyDetail)"/&gt; &lt;s:List id="calcList" alternatingItemColors="[#e5e4e4,#ffffff]" width="100%" height="90%" labelField="name" change="calcList_changeHandler(event)"&gt; &lt;s:ArrayCollection&gt; &lt;fx:Object name="A1c Calculator" /&gt; &lt;fx:Object name="BMI Calculator" /&gt; &lt;fx:Object name="GPA Calculator" /&gt; &lt;fx:Object name="Tip Calculator" /&gt; &lt;/s:ArrayCollection&gt; &lt;/s:List&gt; &lt;s:Label color="#1021C7" fontFamily="_typewriter" fontSize="10" text="Powered by WATTS Professionals"/&gt; &lt;/s:View&gt; </code></pre> <p>Thanks in advance for your help. </p> <p>Ryan </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload