我开始在我的应用程序中实现 Facebook 的 AccountKit SDK。 在 UI 文档中,它清楚地为我提供了主题背景图像的属性,但这不起作用。
https://developers.facebook.com/docs/accountkit/android/customizing
然后我尝试使用 100x100 的小图片 哪个有效。 正常图像不会显示为背景的任何解决方案 这是我的代码
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LoginThemeYellow" parent="Theme.AccountKit">
<item name="com_accountkit_primary_color">#94612D</item>
<item name="com_accountkit_primary_text_color">@android:color/white</item>
<item name="com_accountkit_secondary_text_color">#BE8C5B</item>
<item name="com_accountkit_secondary_color">@android:color/transparent</item>
<item name="com_accountkit_status_bar_color">#94612D</item>
<item name="com_accountkit_button_background_color">#94612D</item>
<item name="com_accountkit_button_border_color">#94612D</item>
<item name="com_accountkit_button_disabled_background_color">#e2b382</item>
<item name="com_accountkit_background">@mipmap/horse1</item>
<item name="com_accountkit_input_accent_color">?attr/com_accountkit_primary_color</item>
<item name="com_accountkit_input_border_color">?attr/com_accountkit_primary_color</item>
</style>
</resources>
最佳答案
将此项目添加到对我有用的样式:
<item name="com_accountkit_background_color">@android:color/transparent</item>
使用帐户工具包版本 4.16.1
关于android - AccountKIt LoginActivity 背景图片不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38178264/