mitsusdev Member Licensed User Longtime User Jun 25, 2012 #1 Hi, i've a question about ICS style. I've follow the guidelines about minsdkversion for ICS support. All work fine, but i've a problem with forms (EditText, checkboxes, ecc) I've set backgroud color white and i no longer see the edittext. I would like to have the EditText of a different color from white (see attached view) What's wrong? Regards Attachments ics_login.png 21.2 KB · Views: 991
Hi, i've a question about ICS style. I've follow the guidelines about minsdkversion for ICS support. All work fine, but i've a problem with forms (EditText, checkboxes, ecc) I've set backgroud color white and i no longer see the edittext. I would like to have the EditText of a different color from white (see attached view) What's wrong? Regards
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2012 #2 Try this: Code: Copy Dim p As Phone EditText1.Background = p.GetResourceDrawable(17301528) 'Value of Android.R.drawable.editbox_background. Upvote 0
Try this: Code: Copy Dim p As Phone EditText1.Background = p.GetResourceDrawable(17301528) 'Value of Android.R.drawable.editbox_background.
mitsusdev Member Licensed User Longtime User Jun 25, 2012 #3 Erel said: Try this: Code: Copy Dim p As Phone EditText1.Background = p.GetResourceDrawable(17301528) 'Value of Android.R.drawable.editbox_background. Click to expand... Thanks for your fast response Erel, i've set it, but i have'nt ICS style. See screenshot below. How do I figure out what in this case the code from R.drawable | Android Developers? Regards Attachments ics_login2.png 22.9 KB · Views: 912 Upvote 0
Erel said: Try this: Code: Copy Dim p As Phone EditText1.Background = p.GetResourceDrawable(17301528) 'Value of Android.R.drawable.editbox_background. Click to expand... Thanks for your fast response Erel, i've set it, but i have'nt ICS style. See screenshot below. How do I figure out what in this case the code from R.drawable | Android Developers? Regards
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2012 #4 Not sure that I understand your question... Upvote 0
mitsusdev Member Licensed User Longtime User Jun 25, 2012 #5 Erel said: Not sure that I understand your question... Click to expand... OK Erel, I'll explain. I want to use for my form basic ICS gui for EditText (for Example Text Fields | Android Developers....in practice without the top and side edges). I'm not able (following your advice) to find the appropriate code. Code: Copy EditTextUsername.Background = p.GetResourceDrawable(17301528) For example, using your code (17301528), i've an editText with complete bordelines. ...In practice I would get the default layout for ICS (see attachment....i've added a bitmap background image for the username edittext in this case. Is it possible to change color at editText using default ICS UI? ) Thx and regards Attachments ics_login3.png 22.1 KB · Views: 809 Last edited: Jun 25, 2012 Upvote 0
Erel said: Not sure that I understand your question... Click to expand... OK Erel, I'll explain. I want to use for my form basic ICS gui for EditText (for Example Text Fields | Android Developers....in practice without the top and side edges). I'm not able (following your advice) to find the appropriate code. Code: Copy EditTextUsername.Background = p.GetResourceDrawable(17301528) For example, using your code (17301528), i've an editText with complete bordelines. ...In practice I would get the default layout for ICS (see attachment....i've added a bitmap background image for the username edittext in this case. Is it possible to change color at editText using default ICS UI? ) Thx and regards
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2012 #6 You should instead use a platform theme. Add this line to the manifest editor: Code: Copy SetApplicationAttribute(android:theme, @android:style/Theme.Holo.Light) Make sure that you reference android.jar from level 13 or above. Upvote 0
You should instead use a platform theme. Add this line to the manifest editor: Code: Copy SetApplicationAttribute(android:theme, @android:style/Theme.Holo.Light) Make sure that you reference android.jar from level 13 or above.
mitsusdev Member Licensed User Longtime User Jun 25, 2012 #7 Erel said: You should instead use a platform theme. Add this line to the manifest editor: Code: Copy SetApplicationAttribute(android:theme, @android:style/Theme.Holo.Light) Make sure that you reference android.jar from level 13 or above. Click to expand... Erel, now all work fine!! Where can I find all the directives to pass to the manifest file? [SOLVED] http://www.b4x.com/android/wiki/index.php/Manifest_Editor Thanks a lot. :sign0098: Last edited: Jun 25, 2012 Upvote 0
Erel said: You should instead use a platform theme. Add this line to the manifest editor: Code: Copy SetApplicationAttribute(android:theme, @android:style/Theme.Holo.Light) Make sure that you reference android.jar from level 13 or above. Click to expand... Erel, now all work fine!! Where can I find all the directives to pass to the manifest file? [SOLVED] http://www.b4x.com/android/wiki/index.php/Manifest_Editor Thanks a lot. :sign0098: