I have an app that uses an older library that uses the AppCompat theme. It's working and life is good. The manifest entry I use is:
and my code:
I need to add the Runtime Permissions library but it want to use the Holo theme. My target SDK is 22 so (in theory) it shouldn't show the ask for permission prompt so there are no GUI requirements.
When I compile, I get the following errors:
I'm not sure where to start to correct this or how theming in general works. Any tutorials?
B4X:
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")
and my code:
B4X:
#AdditionalRes: C:\Android\android-sdk\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
I need to add the Runtime Permissions library but it want to use the Holo theme. My target SDK is 22 so (in theory) it shouldn't show the ask for permission prompt so there are no GUI requirements.
When I compile, I get the following errors:
]c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:123: error: Attribute "actionBarSize" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:111: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:398: error: Attribute "navigationMode" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:73: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:407: error: Attribute "displayOptions" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:79: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:524: error: Attribute "backgroundTintMode" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:192: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:640: error: Attribute "showAsAction" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:139: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:775: error: Attribute "showDividers" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:129: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:892: error: Attribute "buttonTintMode" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:117: Original attribute defined here.
I'm not sure where to start to correct this or how theming in general works. Any tutorials?
Last edited: