Im trying to create toast like control based on textview, and i found very strange behavior of textview in case when it have nine patch drawable as background.
This is xml definition:
<by.pplware.view.QuickInfo
android:id="@+id/quickinfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:padding="20px"
android:textSize="20px"
android:textStyle="bold"
android:typeface="serif"
android:background="#FFFF0000"
/>
this is textview with color background:
this is textview with drawable background :
As i understand, in case of ninepatch background android make padding transparent and use drawable only as background for text. But I want to include padding into area covered with ninepatch background.
Is there any solution for this issue ?
Try any of these:
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