Android Question Appcompat Customview Button White

mcqueccu

Well-Known Member
Licensed User
Longtime User
Hello, I am using appcompat for an application. I added some views through the customview and under customview properties -> button color set my color. But When i run the app, other views display fine but the BUTTON remains white. It doesnt change its color irrespective of the states... What am i doing wrong?
 
Last edited:

mcqueccu

Well-Known Member
Licensed User
Longtime User
Hello, my problem still persist and it happens on my phone and emulator running android 4.4.2 and my phone running running android 4.1.2. The appcompat button is always gray and the colorPrimaryDark doesnt show.
On phones running android 5 it works well. What am I doing wrong

THEME Manifest
B4X:
SetApplicationAttribute(android:theme, "@style/FDTheme")
CreateResource(values, theme.xml,
    <resources>
        <style name="FDTheme" parent="Theme.AppCompat.Light.DarkActionBar">
            <item name="colorPrimary">#FF445E</item>
           <item name="colorPrimaryDark">#CC041F</item>
           <item name="colorAccent">#FF445E</item>
        </style>
    </resources>
    )
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…