androideditbox

change the look of Edit Text box in android


I want to change the way the edit text view looks like... I have found a few answers but they somehow don't solve my purpose... Please kindly provide solutions.


Solution

  • Try .

    You can do something like this to make a rounded edit box:

    Make styyles.xml in values folder.

    <solid android:color="#FFFFFF"/>
    
    <stroke
        android:width="2dp"
        android:color="#E7E7E7"
        android:height="10dp"/>
    
    <corners
        android:radius="5dp"/>
    

    You can then use it in xml like :

    <EditBox
    
        style="@style/Edit_box_background"
        other attributes....
        />