Android Question Problem with Filiedialog (Dialog-Libray 3.00, 4.01)

D

Deleted member 103

Guest
Hi,

if I set the TextColor = Black then it looks like this,


I set the TextColor = default, then it looks like this.


What should I set for a color so it looks like the version 3.92?
 
D

Deleted member 103

Guest
Why are you using Android 2.x theme? You should set the targetSdkVersion to 14+.
Unfortunately, I can not do that.

I'm using in this project that here
B4X:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="19"/>
<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")

and have solved my problem with this color.
B4X:
    Dim fd As FileDialog
    fd.TextColor = Colors.Gray
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Unfortunately, I can not do that.
Why?

You can set a modern light theme:
B4X:
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values-v20, theme.xml,
<resources>
  <style
  name="LightTheme" parent="@android:style/Theme.Material.Light">
  </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
  <style
  name="LightTheme" parent="@android:style/Theme.Holo.Light">
  </style>
</resources>
)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…