Autocomplete textview with oval shape corners



I want to create the shape of autocomplete textview shown in the figure and text should come in center of it.


enter image description here


Currently I am trying to implement it as



<item>
<shape android:shape="rectangle" >
<corners android:radius="15dip" />

<solid android:color="@color/blue_text" />

<padding
android:bottom="5dip"
android:left="15dip"
android:right="15dip"
android:top="5dip" />
</shape>
</item>



<AutoCompleteTextView
android:id="@+id/autoComp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:background="@drawable/bg_autocompletetext"
android:textColor="@color/white"
</AutoCompleteTextView>


But it would just make the corners of the textview round. It does make it completely round. Please specify any solution for it.


No comments:

Post a Comment