Quantcast
Channel: Android TextView Padding with a drawable background in xml - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Meenal for Android TextView Padding with a drawable background in xml

try this..if this matches your requirement : <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="18sp" android:gravity="center"...

View Article


Image may be NSFW.
Clik here to view.

Android TextView Padding with a drawable background in xml

So... a known Android issue is that setting a drawable background to a TextView in conjunction with setting the padding (e.g. paddingLeft) will only work if the background is set before the padding.So...

View Article

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>