How to Set Android Button and TextView Border Color
http://www.viralandroid.com/2015/10/android-button-and-textview-border-color.html
Android button is a child view which consists of text or an icon or both. TextView is also child view in android. Here, I have shown how to set border color in android buttons and textviews.
Also Read: Change Background Color On Instagram Story
I have created an android Button and TextView and have set the background color. Then, I have set border width 5dp and border color white from drawable resource and you can change that according to your needs.
Related:
Buttons - Android Button Examples
Relative Layout - Views Position in Android
How to Change Android Button on Click/Press Color
How to Add Ripple Effect/Animation to a Android Button
res/layout/border_color.xml
res/drawable/border.xml
res/values/strings.xml
Output:
Related:
Buttons - Android Button Examples
Relative Layout - Views Position in Android
How to Change Android Button on Click/Press Color
How to Add Ripple Effect/Animation to a Android Button
res/layout/border_color.xml
res/drawable/border.xml
res/values/strings.xml
Output: