Android Question How to change Themes as light in Theme.AppCompat

junaidahmed

Well-Known Member
Licensed User
Longtime User
I have an application,by default themes are showing as Dark.I would like to know how to change themes for dark to light themes.Please check my below manifest file and advise where to modify that...
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:label, "$LABEL$")

'End of default text.


SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")

AddApplicationText(<meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
        <meta-data
            android:name="com.google.android.gms.vision.DEPENDENCIES"
            android:value="barcode" />)
AddApplicationText(<activity
            android:theme="@style/AppTheme.NoActionBar"
                        
            android:name="com.edwardvanraak.materialbarcodescanner.MaterialBarcodeScannerActivity"
            android:label="@string/library_name" >
        </activity>)
AddPermission(android.permission.CAMERA) ' Required to be able to access the camera device.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Similar Threads

Top