Android Picker Style (theme) -


i'm facing situation , can't find solution, i've alloy app, , i've created 'input' it's own options, in ios shows popup ui.picker, , in android shows ui.picker dropdown, problem background dark , text white, i've tried add theme tiapp.xml , add properties it, nothing changed yet; want apply in alert dialogs, tiapp.xml file:

 <android xmlns:android="http://schemas.android.com/apk/res/android">         <tool-api-level>14</tool-api-level>         <manifest>             <application                  android:debuggable="true"                 android:largeheap="true"                 android:theme="@style/theme.mytheme">                 <activity ... ></activity>             </application>             <supports-screens android:anydensity="true"/>         </manifest>     </android> 

this app/platform/android/res/values/style.xml:

<?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android">     <style name="theme.mytheme" parent="theme.appcompat.light.darkactionbar">         <item name="android:edittextstyle">@style/text</item>         <item name="android:spinneritemstyle">@style/picker</item>         <item name="android:spinnerstyle">@style/picker</item>         <item name="android:spinnerdropdownitemstyle">@style/picker</item>         <item name="android:color">#555</item>         <item name="android:background">#fff</item>     </style>     <style name="text" parent="@android:style/widget.edittext">         <item name="android:color">#555</item>         <item name="android:textcolor">#555</item>         <item name="android:background">#fff</item>     </style>     <style name="picker" parent="@android:style/widget.textview.spinneritem">         <item name="android:color">#555</item>         <item name="android:textcolor">#555</item>         <item name="android:background">#fff</item>     </style>     <style name="alert" parent="theme.appcompat.light.dialog.alert">         <item name="android:colorprimary">#555</item>         <item name="android:textcolorprimary">#555</item>         <item name="android:coloraccent">#555</item>         <item name="colorprimarydark">#555</item>         <item name="android:background">#fff</item>     </style> </resources> 

update:

this ios picker:

iospicker

this android picker:

enter image description here

digging through code @ https://github.com/appcelerator/titanium_mobile/blob/415bd6c66dcc55b1a59a59574f3babd3c3a84ede/android/modules/ui/src/java/ti/modules/titanium/ui/widget/picker/tiuinativepicker.java#l93 component styled https://github.com/appcelerator/titanium_mobile/blob/415bd6c66dcc55b1a59a59574f3babd3c3a84ede/android/modules/ui/res/layout/titanium_ui_spinner.xml you'd need override id in custom theme.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -