D Deleted member 103 Guest Sep 17, 2017 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2017 #2 Why are you using Android 2.x theme? You should set the targetSdkVersion to 14+. Upvote 0
D Deleted member 103 Guest Sep 18, 2017 #3 Erel said: Why are you using Android 2.x theme? You should set the targetSdkVersion to 14+. Click to expand... 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 said: Why are you using Android 2.x theme? You should set the targetSdkVersion to 14+. Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2017 #4 Filippo said: Unfortunately, I can not do that. Click to expand... 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
Filippo said: Unfortunately, I can not do that. Click to expand... 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> )
D Deleted member 103 Guest Sep 18, 2017 #5 Why? Click to expand... I can not because I develop the app for someone else. Upvote 0
Star-Dust Expert Licensed User Longtime User Sep 18, 2017 #6 Filippo said: I can not because I develop the app for someone else. Click to expand... Use another dialog Library Upvote 0
Filippo said: I can not because I develop the app for someone else. Click to expand... Use another dialog Library