Textfield styling #13080
-
I have several questions with respect to styling text field for android:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
1: guess you have to use a Android theme for that. Never done that but if you search for it you'll find some examples. This might be a starting point: https://www.11zon.com/zon/android/how-to-change-android-edittext-cursor-color.php (its not a theme but the property name might be the same) I recommend checking out kitchensink from https://github.com/appcelerator/kitchensink-v2/ especially the screenshots in tidev/kitchensink-v2#56 |
Beta Was this translation helpful? Give feedback.
-
All the subfolders under your Titanium project's Follow the kitchensink-v2 example links I posted above. In that example, the app uses a "red" theme, which includes the text field border theme. It's simple. Just try it. There's also a guide on how to set up themes below. |
Beta Was this translation helpful? Give feedback.
1: guess you have to use a Android theme for that. Never done that but if you search for it you'll find some examples. This might be a starting point: https://www.11zon.com/zon/android/how-to-change-android-edittext-cursor-color.php (its not a theme but the property name might be the same)
2: https://titaniumsdk.com/api/titanium/ui/textfield.html#borderstyle
3: use a class with the top/bottom properties? There was a discussion about some kind of
margin
but it is not implemented.4: https://titaniumsdk.com/api/titanium/ui/textfield.html#hinttype
I recommend checking out kitchensink from https://github.com/appcelerator/kitchensink-v2/ especially the screenshots in tidev/kitchensink-v2#56