android - Google Play Services change my style (more precisely remove) -
after added google play service build.gradle file, checkbox lost customized style , icon on actionbar has been changed (now have arrow).
<checkbox android:id="@+id/login_cb_remember" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margintop="10dp" android:text="remember me" android:checked="false" />
manifest:
<application android:allowbackup="true" android:label="@string/app_name" android:theme="@style/apptheme" android:icon="@mipmap/ic_launcher">
style.xml:
<resources xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> <style name="apptheme" parent="theme.appcompat.light.darkactionbar"> <item name="android:textcolor">#232323</item> <item name="android:checkboxstyle">@style/checkboxapptheme</item> </style> </resources>
style_apptheme.xml
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="checkboxapptheme" parent="android:widget.compoundbutton.checkbox"> <item name="android:button">@drawable/apptheme_btn_check_holo_light</item> </style> </resources>
this situation began happen after added:
compile 'com.google.android.gms:play-services:7.8.0'
Comments
Post a Comment