Android - Material Theme
I am trying to implement Material Theme with SDK 4.0.0. Here are some of my problems:
- 9 patch splash (background.9.png) is not displayed correctly. Worked well before (logo is centered with all white background, no black spots).
- here is my special topic:
<style name="MyMaterial" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">#4CAF50</item>
<item name="colorPrimaryDark">#388E3C</item>
</style>
There are multiple windows open dynamically that I want to have a different colorPrimary / colorPrimaryDark than the above defaults. Is it possible?
-
My application uses a group of tabs. There is an underline under the active tab. I want to change the underline color to #ffffff without affecting the active color of other controls. Unfortunately, colorAccent affects the color of all controls. What should I do?
-
Is it possible to remove the default tab separator and add a shadow below it to make the tabs look like a Google Play Store app?
-
My app uses push notification. I usually specify my appicon.png for the notification icon. Now updated to SDK 4.0.0 with Material Theme, the appicon shown in the notification turns all white. Can I show a regular appicon?
source to share
- As of Android 5.0, you need to provide until an additional nine-patch image panel is added. The newest CLI TiCons generates this for you: http://npmjs.com/package/ticons . You want black pixels at the bottom and right of the image, excluding the bottom left and right and top right pixels.
- You can define multiple themes and then use the property
theme
increateWindow()
to select it. - Android new Material Design Theme has limited options in what you can create. See https://developer.android.com/training/material/theme.html
- See previous
- Not sure about this, but did you check http://docs.appcelerator.com/platform/latest/#!/guide/Sending_and_Scheduling_Push_Notifications-section-43298780_SendingandSchedulingPushNotifications-icon ?
source to share