[ 
https://issues.apache.org/jira/browse/FLEX-34643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229907#comment-14229907
 ] 

Ad Pijnenburg commented on FLEX-34643:
--------------------------------------

I've just attached an .fxp mobile project, it tested OK on a number of Android 
4 devices (phones and tablets).

It's actually the Flextras MobileDropDownList /-Skin with some modifications:
- for the DropDownListButtonSkin I've extended Om's Android4 ButtonSkin, for 
referring to the two DDL button skin FXG graphics I created 
(DropDownListButton_up.fxg / DropDownListButton_down.fxg). I don't know if 
separate FXG graphics are needed for distinctive dpi modes.
- the DropDownListSkin is almost identical to the Flextras 
DropDownListMobileSkin_Default.as, but I've added a dropshadow style property 
to make the list appear more like the Android 4 style Spinner button (see 
[http://developer.android.com/design/building-blocks/spinners.html]) and 
commented out the code needed for the dropdownbutton arrow which is not present 
on mobile (see Android4 comments in the DropDownListSkin.as file)
- not essential to this MobileDropDownList list, but for my own preferences: 
I've modified the default LabelItemRenderer to clear the standard 
semi-transparent black gradient overlay over a selectedItem's selectionColor 
(in line with styles of iOS7 and later as well as Android 4 and later). I will 
post a separate JIRA ticket to request this change to LabelItemRenderer and 
IconItemRenderer.

Given the differences between the Adobe Flex DropDownList.as and the (Flextras) 
MobileDropDownList.as, I'm not sure whether the desktop-/mobile-specific code 
parts could be integrated into one generic object, or rather the 
MobileDropDownlist object should be a new mobile-specific or rather Android 
(4)-only control object included in a next Apache Flex release, as for iOS a 
CallOut would be expected to be used for choosing from a list.

> Android4 skin for 'Selection/drop down-type' Button
> ---------------------------------------------------
>
>                 Key: FLEX-34643
>                 URL: https://issues.apache.org/jira/browse/FLEX-34643
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: Mobile: Button Skin
>    Affects Versions: Apache Flex 4.14.0
>            Reporter: Ad Pijnenburg
>            Priority: Minor
>         Attachments: ComboBox_DropDownList_Closed.png, ComboBox_Scrolled.png, 
> ComboBox_Touched.png, DropDownList_Scrolled.png, DropDownList_Touched.png, 
> Selection_TypeButton.png, TestAndroid4MobileDLLSkin.fxp
>
>
> One of the Android 4 button types (usually giving access to a selection drop 
> down list or date/time dialog) has the appearance of transparency with a 
> bottom border line including a small triangle at the bottom right (see 
> attached image). 
> Could this specific Android button appearance be implemented in any of the 
> new Android4 skins?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to