Android Question AnotherDatePicker - change background color

ThePuiu

Active Member
Licensed User
Longtime User
Originally, my app was set to use the Dark theme. The client has changed his mind and now wants the Light theme! In this case, I no longer manage how to set the background of the control as transparent because now it is black... Any idea?
Thank you!
 

Attachments

  • settings.png
    settings.png
    20.7 KB · Views: 177

ThePuiu

Active Member
Licensed User
Longtime User
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
AddApplicationText(<activity android:name="ice.zxing.CaptureActivity"
         android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden"
         android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
         android:windowSoftInputMode="stateAlwaysHidden">
      </activity>)
      AddPermission(android.permission.CALL_PHONE)
'firebase
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
'firebase end
 
Upvote 0

ThePuiu

Active Member
Licensed User
Longtime User
probably because of my poor English you did not understand my problem. In the attached image is my white layout and DateTime component which I can not make white background.
 

Attachments

  • datetime.jpg
    datetime.jpg
    55.6 KB · Views: 155
Upvote 0

ThePuiu

Active Member
Licensed User
Longtime User
now that I tried to make a test project I found the problem ... I copied (I do not know from) in my project a modified version of AnotherDatePicker!

dateField.Color = Colors.Black

"Case closed" and I apologize for my stupidity.
 
Upvote 0
Top