I have a rectangular text editor that is inside a TextInputLayout. I want to put some margin between the floating label and the rectangular borders of the edit text, but I cannot do this. I tried different field options, but did not train. 
In the image, you can see that the floating label adheres to the upper border of the rectangular editing text. But I want some space between the label and the top border. Thanx in advance.
below is the XML code for EditText
<android.support.design.widget.TextInputLayout android:id="@+id/input_layout_password" android:layout_width="match_parent" android:layout_height="wrap_content" > <EditText android:id="@+id/input_password" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="email" android:background="@drawable/textbg"/>
below is the code to output the background
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="1dp" android:color="@color/colorPrimary"/> /> <padding android:left="15dp" android:right="15dp" android:top="15dp" android:bottom="15dp" /> </shape>
android android-edittext android-textinputlayout androiddesignsupport
Baqir
source share