How to remove the border of edittextfield in android

Simply, You can use following in your xml file to make EditText background clear:

android:background="@null"

Programmatic method:

setBackgroundDrawable(null);

Or, since setBackgroundDrawable() is deprectated in API 16:

if (Build.VERSION.SDK_INT >= 16)
    setBackground(null);
else
    setBackgroundDrawable(null);

You can customize your EditText by using the following xml layout

Save the following code asyourWishName.xml

<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">

//You can change the color of the edit text here which removes the border line as well
 <item android:state_focused="true" >
    <shape android:shape="rectangle">
        <gradient
            android:startColor="#FFFFFF"
            android:endColor="#FFFFFF"
            android:angle="270" />
        <stroke
            android:width="3dp"
            android:color="#F8B334" />
        <corners
            android:radius="12dp" /> 
    </shape>
</item>  
<item>
    <shape android:shape="rectangle">
        <gradient
            android:startColor="#FFFFFF"
            android:endColor="#FFFFFF"
            android:angle="270" />
        <stroke
            android:width="0dp"
            android:color="#000000" />
        <corners
            android:radius="12dp" /> 
    </shape>
</item>
</selector>

In EditText call the xml android:background="@drawable/yourWishName"

To Align right Use android:gravity="right"

Hope this helps