Hi I am currently developing a mobile application within Flashbuilder 4.5 Pro. However I am having issues as I cannot seem to add a drop down list to my application and have it work properly. I have created the code below and this effectively creates a drop down list and populates it with items, however when the user clicks on an item it is not selected in the field.
This also happens when I am testing it on my machine and the only way to select the item is to click on the list and then use the down arrow on the keyboard which I cannot do in the application. Can someone please help me????
<s:DropDownList id="sex_drpdown" width="150" height="61.35" labelField="value" fontSize="30" change="sex_drpdown_changeHandler(event)">
<s:ArrayCollection>
<fx:String>Male</fx:String>
<fx:String>Female</fx:String>
</s:ArrayCollection>
</s:DropDownList>
Although I'm coming in a little late to this question, we have created a Flex Mobile DropDownList and it is available as part of the Flextras Mobile Component set.
The issues w/ using the DropDownList in mobile relate to the differences between touch and mouse inputs and the way that the original DropDownList was structured.
Here is a sample of our Flex Mobile DropDownList. You can always download our free edition to test it out in the mobile emulators or on your device. The free edition can be used in production, but we do have pay options if you want source code or help.
Update: All Flextras Components went open source under the Apache License; so you no longer have to pay anything to use them.
I think what you really want is to use Combobox:
<s:ComboBox change="changeHandler()">
<s:ArrayCollection>
<fx:String>Male</fx:String>
<fx:String>Female</fx:String>
</s:ArrayCollection>
</s:ComboBox>
Actually there is not an issue with the DropDownList. As a mobile application - user just need to create his own skin for it. Adobe "discourage" it because it requires some advanced skills, which is not the prime target nowdays of Adobe ( which is wried ). Just create your own skin, and it will be more than OK. :)
DropDownList are not made for mobile application
We also tried to use a dropDownList on flex mobile,
but i doesn't work for it.
Our solution was to make a list pop up instead.
This is also used in many android apps and even an adobe sample app:
http://www.adobe.com/devnet/flex/samples/sales-dashboard-application.html
resolves the problem that way.
Related
I am stuck with one of my client requirement , it seems not be feasible to me as i am not able to find anything related to this particular requirement.I am goggling but does not came up with proper clue.I though studied the below mentioned link which states that it is not supportive . Here is the link :-
How to force a widget to appear on lock screen programmatically (Android)
i just want to confirm that is it feasible ? Or this can be achieved by making custom lock screen for application.
Here is what my client requirement is :-
I need your suggestion here , please let me know .
Thanks
i just want to confirm that is it feasible ?
As I wrote in the answer to the question that you linked to, the standard Android lockscreen framework only supports app widgets from Android 4.1 through 4.4, which is a steadily shrinking portion of the Android device ecosystem.
Or this can be achieved by making custom lock screen for application.
Android does not support the creation of custom lockscreens, other than by building your own modified version of Android, poured into your own custom ROM, installed onto whatever hardware your custom ROM supports.
There are plenty of developers who claim to create custom lockscreens. Those actually require you to disable the device lockscreen, then their apps attempt to interpose themselves between the user and ordinary apps. At the best of times, this offers weaker security.
I've developed different personal apps for android and now i'm interested in google cardboard project
So, would be possible to create an application for android to implement the same system of this project : http://www.vrdesktop.net ( windows only ). In few words mirroring the android screen inside another app that will split everything ..
actually i don't know if there are some usefull api/ways to accomplish the job.
EDIT1: i've prepared a draw to better show the idea: https://docs.google.com/drawings/d/15AYvjesIhZDTe5mfOmm5TzhRkyxmDA6L0jI9MzdKbB4/edit
After long researches i've found an open source project that is doing exactly what i was looking for:
https://github.com/frma71/sbs
P.S. Thank you for useless downvoting
I want to develop an android application which has to run two other applications on the device with one app on upper half of the screen and the other in lower half of the screen. Any clues/suggestions to start developing this ? Thanks in advance !
it's not possible multi-pane-layout two other apps.
if u want your app with multiple activities follow this tutorials for your references:
it's called named as multi-pane-layouts and offical introduction about multi-pane-layouts below link:
http://developer.android.com/design/patterns/multi-pane-layouts.html
and it's shows how to implement multi-pane-layouts on your project below link from android official side:
http://developer.android.com/guide/practices/tablets-and-handsets.html
and you can download example project from github below link:
https://github.com/faisalgeek/MultiPaneAndroidApp
This is not possible, except via custom device firmware or ROM mods. In standard Android, only one app can be used at a time.
However:
You are welcome to support multi-window apps on some Samsung devices, as they have extended their firmware to support this concept
You are welcome to have an activity's theme set up to not fill the screen, though anything else around the activity will at most be visible and will not respond to touch events
If all of these applications are yours, combine them into one app, and then you can display elements of that app alongside other elements of that app however you wish.
If you are looking for a feature for your app which supports multi-window then Latest Android version N has a new cool feature called Multi-window support, you can let your app support multi-window which can be resized and scaled which is exactly your requirement. you can find the reference link here
Sorry that I don't have a example code for you to see. My question is that I have 8 image buttons for my menu and I need to know how to make the image buttons show and not show.
Meaning When you go to the menu on Android it shows 7 buttons and hides the 1 button that's for iOS and when your on the iOS it shows all 8 image buttons. I have search on Google for two days now still lost.
I have one solution for menu buttons: Try this AwesomeMenu link.
You will have to make your own modification according to your requirement.
If you're writing a web app and you need to know if the app is being accessed on an Android device or an iOS device, you should look at the user agent string.
Here's a list of iOS devices and their user agent strings: http://www.enterpriseios.com/wiki/UserAgent (First hit on Google, can't speak for the accuracy).
Here's one for Android devices: http://www.gtrifonov.com/2011/04/15/google-android-user-agent-strings-2/ (again, no idea how accurate; do your own research to be sure).
You just have to look at navigator.userAgent in your JavaScript and figure out what device the user is using. That's a start, anyway. (You'll also want to look at the iOS web app documentation to see Apple's specific meta tags and stuff to make your web app work nicely on iOS, and I'm sure Android has something similar).
I am building a web site that needs to work on computers as well as tablets and I have found that if you have a web form with select tags in it, when you view it with a tablet running android 3.1 the select options are shown in a modal window at the bottom of the page.
when you select options using this method, it is no longer the select option changing in the DOM and you cannot react to changes. Is there a way to disable this so that a dropdown is a dropdown and looks and reacts as it would on a desktop?
Thanks in advance to anyone that can help. (Google has yet to yield any results for me)
Have you tried jQuery Mobile? It basically implements jQuery for mobile devices. I found that there's a way to build Select Menus right there.