i want to add a grey border to my edittext control. How do i add such a border, either via xml or programatically.
thank you in advance.
You need to make a nine-patch image and set it as a background of your EditText control:
<EditText android:background="@drawable/your_background"/>
It's better to use nine-patch because of its scaling capability.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With