border bottom android xml
Here is what the above code is Doing:
1. We are creating a layer-list.
2. We are creating a rectangle shape.
3. We are giving the rectangle shape a stroke of 10dp.
4. We are giving the rectangle shape a solid color.
5. We are giving the rectangle shape a left and right padding of -10dp.
Now, let’s apply this drawable to our TextView.