I want to create a TextView which has a custom background.
In particular I would like to have a Text view which looks like this.
I know that i can set a background to a TextView with android:background="@drawable/displaybackground
but how can i align the text in this textview. The text should be displayed in the center of the Textview, like in the image above.
kind regards
Use center
for the gravity
property in the TextView (not the layout_gravity
).
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