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).

enter image description here

  1. 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?

  1. 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?

  2. 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?

  3. 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?

+3


source to share


1 answer




+1


source







All Articles