Hi All,
I have just started trying to target my app builds to newer version of Android in order to put them on Google Play, previously they were targeted at sdk 4. This has caused my apps to change appearance, so I trying to get them looking how I want using themes and overriding where necessary.
My manifest file is currently:
AddManifestText(
<uses-sdk android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
SetActivityAttribute(ViewFile, android:windowSoftInputMode, adjustResize|stateHidden)
SetActivityAttribute(Keyboard, android:windowSoftInputMode, adjustResize|stateHidden)
AddPermission("android.permission.VIBRATE")
SetApplicationAttribute(android:theme, "@style/DarkTheme")
CreateResource(values-v20, theme.xml,
<resources>
<style
name="DarkTheme" parent="@android:style/Theme.Material">
<item name="android:textColor">#FFFF00</item>
</style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
<style
name="DarkTheme" parent="@android:style/Theme.Holo">
</style>
</resources>
)
So that's great, I can set the default text color, but I can't work out how to set the background and text colors of a spinner, or any other individual item.
Is there any information on this anyone can point me to? Or is my approach (editing the manifest) wrong and I should be doing something else?
Thank you,
Darren
I have just started trying to target my app builds to newer version of Android in order to put them on Google Play, previously they were targeted at sdk 4. This has caused my apps to change appearance, so I trying to get them looking how I want using themes and overriding where necessary.
My manifest file is currently:
AddManifestText(
<uses-sdk android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
SetActivityAttribute(ViewFile, android:windowSoftInputMode, adjustResize|stateHidden)
SetActivityAttribute(Keyboard, android:windowSoftInputMode, adjustResize|stateHidden)
AddPermission("android.permission.VIBRATE")
SetApplicationAttribute(android:theme, "@style/DarkTheme")
CreateResource(values-v20, theme.xml,
<resources>
<style
name="DarkTheme" parent="@android:style/Theme.Material">
<item name="android:textColor">#FFFF00</item>
</style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
<style
name="DarkTheme" parent="@android:style/Theme.Holo">
</style>
</resources>
)
So that's great, I can set the default text color, but I can't work out how to set the background and text colors of a spinner, or any other individual item.
Is there any information on this anyone can point me to? Or is my approach (editing the manifest) wrong and I should be doing something else?
Thank you,
Darren