roberthovhannisyan / PhoneGap-Plugin-ListPicker

ListPicker Plugin for Cordova/PhoneGap (iOS and Android)
MIT License
35 stars 40 forks source link

Trigger the Holo design for Android #6

Closed puntsok closed 9 years ago

puntsok commented 9 years ago

Sorry for the simple question, but Is there a way to trigger the holo design for android in line with your example screenshot in the docs? It appears that I am still getting the old dialog design though my min sdk is set at 19

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="22" />

image

roberthovhannisyan commented 9 years ago

Hi @puntsok To achieve you can modify the application theme through android manifest file. If you are using PhoneGap Build you may consider adding following lines to your config.xml

    <gap:config-file platform="android" parent="/manifest">
        <application android:theme="@android:style/Theme.Holo.Light" />
    </gap:config-file>

I personally prefer using device's default theme by setting android:theme attribute to @android:style/Theme.DeviceDefault