Android : Android edittext style to show vertical divider

on Sunday, September 14, 2014


How to make this vertical line divider between the drawable and the text in the edittext: I'm able to achieve the outer box look that contains the drawable on the left and the input text on the right but how can I add this divider in between?


enter image description here


This what I've done so far:



<item>
<shape>
<solid android:color="@android:color/white" />
</shape>
</item>
<item>
<shape>
<solid android:color="@android:color/background_dark" />

</shape>
</item>

<!-- main color -->
<item
android:bottom="1.5dp"
android:left="1.5dp"
android:right="1.5dp">
<shape>
<solid android:color="@android:color/white" />
</shape>
</item>

<!-- draw another block to cut-off the left and right bars -->
<item android:bottom="15.0dp">
<shape>
<solid android:color="@android:color/white" />
</shape>
</item>

0 comments:

Post a Comment