Android Question How to select the style of the CheckBox

foretek

Member
Licensed User
In my B4A App I selected CheckBox by using AddView-> CheckBox in Visual Designer. I got the green check mark CheckBox. Recently I downloaded a B4A example in which I added a CheckBox the same way, I found the CheckBox is a nice blue background with white check mark as in the pic below. I tried to have the blue CheckBox in my App, but I always get the green one. The B4A version is same, the Android (V8.1) phone is same. I compared manifest files, the minSdkVer is "4", "26" in my app. In the example it is "4", "64". I changed my App to be "64" but it didn't make difference. Could anyone give me some hint how to get the blue checkbox in my App? Thanks.
1587997197840.png
 

foretek

Member
Licensed User
Sorry for posting in wrong place.
My manifest editor code is here,

B4X:
AddManifestText(

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="64"/>

<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:theme, "@android:style/Theme.Light")



AddManifestText(<uses-permission

    android:name="android.permission.WRITE_EXTERNAL_STORAGE"

    android:maxSdkVersion="18" />

)

AddApplicationText(

  <provider

  android:name="android.support.v4.content.FileProvider"

  android:authorities="$PACKAGE$.provider"

  android:exported="false"

  android:grantUriPermissions="true">

  <meta-data

  android:name="android.support.FILE_PROVIDER_PATHS"

  android:resource="@xml/provider_paths"/>

  </provider>

)

CreateResource(xml, provider_paths,

   <files-path name="name" path="shared" />

)
 
Last edited:
Upvote 0
Top