android - Appcompat Theme not applied on all Widgets -


i have extended material theme , applied in activity.

in style.xml

  <style name="apptheme" parent="theme.appcompat.noactionbar">          <item name="colorprimary">@color/primary</item>         <item name="colorprimarydark">@color/primary_dark</item>         <item name="coloraccent">@color/accent</item>         <item name="android:windowbackground">@color/bg</item>     </style>` 

and in manifest

    <application         android:allowbackup="true"         android:theme="@style/apptheme"         android:icon="@mipmap/ic_launcher"         android:label="@string/app_name" > ...</application> 

i see material design styling on toolbar, buttons not applied on imagebutton, togglebutton , seekbar in pre lollipop devices. show in holo theme.

in gradle file using :

compile 'com.android.support:appcompat-v7:22.1.1' 

what should apply uniform style widgets??

according blog post, following widgets supported:

  • appcompatautocompletetextview
  • appcompatbutton
  • appcompatcheckbox
  • appcompatcheckedtextview
  • appcompatedittext
  • appcompatmultiautocompletetextview
  • appcompatradiobutton
  • appcompatratingbar
  • appcompatspinner
  • appcompattextview

for togglebutton, can try use switchcompat instead.


Comments