我正在GoogleAuthException: Unknown error做一个,同时做一个GoogleAuthUtil.getToken.
就在我看到的例外之前
GLSUser: GLS error: INVALID_AUDIENCE <email> audience:server:client_id:xxx.apps.googleusercontent.com
Run Code Online (Sandbox Code Playgroud)
我已将SHA1从我的发布密钥(包名称)设置为google api项目.(顺便说一句,这是成功用于GCM的.)
我扩展了Material Theme并将其应用到我的活动中.
在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>`
Run Code Online (Sandbox Code Playgroud)
在清单中
<application
android:allowBackup="true"
android:theme="@style/AppTheme"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" >
...</application>
Run Code Online (Sandbox Code Playgroud)
我在工具栏,按钮上看到了Material Design样式,但它不适用于Pre Lollipop设备中的ImageButton,ToggleButton和Seekbar.他们出现在Holo主题中.
在我使用的gradle文件中:
compile 'com.android.support:appcompat-v7:22.1.1'
Run Code Online (Sandbox Code Playgroud)
如何将统一样式应用于所有小部件?