Styling Android EditText -


i'm trying style edit text widgets in app. right if use this:

<style name="myedittext" parent="@android:style/widget.edittext">     <item name="android:textcolor">@color/input_text</item>     <item name="android:gravity">left</item> </style> 

it show black background on phone use testing. i'd looks same everywhere. think ok style (i believe "standard"). how pull stale or should make own somehow?

enter image description here

edit:

here code textedit

<edittext                 style="@style/myedittext"                 android:id="@+id/et_serverurl" android:layout_width="fill_parent" android:layout_height="wrap_content" android:maxlength="25"                 android:imeoptions="actionnext" android:singleline="true" android:inputtype="texturi"                 android:hint="@string/str_login_activity_server_url_hint"                  /> 

the style shown in image called holo. can use

<style name="myedittext" parent="@android:style/widget.holo.edittext"> <!-- custom attributes here --> </style> 

edit

if want app use themes have them right have edittext holo can override <item name="android:edittextstyle"></item>under current theme use myedittext instead of default parent style. set theme either activity, or application.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -