2016-05-25 11 views
0

私のアプリにファブリックdigitsを統合してテーマを変更しようとしました。 私は以下のコードを試してみましたが、私はtheme.Whatに何か変更が表示されないか、間違っているか間違っていますか?ファブリックデジット画面のテーマを変更する

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 
    <item name="android:digits">@style/CustomDigitsTheme</item> 
    </style> 

    <style name="CustomDigitsTheme" parent="android:Theme.Material.Light" tools:targetApi="lollipop"> 
     <item name="android:textColorPrimary">@color/white</item> 
     <item name="android:textColorSecondary">@android:color/darker_gray</item> 
     <item name="android:windowBackground">@color/blue</item> 
     <item name="android:textColorLink">#ff398622</item> 
     <item name="android:colorAccent">#ff398622</item> 
    </style 

答えて

0

あなたはそれを手動で作成している場合は、ビルダーに直接あなたがそれを使用している場合、あなたのauthButtonにテーマを追加、またはする必要があります。

サンプルコードはofficial docsです。

たとえば、次のような魅力として

//Example of setting theme with button 
digitsAuthButton.setAuthTheme(android.R.style.Theme_Material); 

または

//Example of setting theme manually with builder 
new Digits.Builder().withTheme(themeId).build();`enter code here` 

作品:)

関連する問題