AccountKIt LoginActivity背景图像不显示

时间:2016-07-04 06:39:09

标签: android facebook android-theme android-styles

我开始在我的应用程序中通过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>

1 个答案:

答案 0 :(得分:4)

将此项添加到适合我的样式中:

<item name="com_accountkit_background_color">@android:color/transparent</item>

使用帐户套件版本4.16.1

相关问题