android - 9-patch padding doesn't adjust correctly -
adding 9-patch:
seems ok here:
however, after adding android:padding="5dp"
, padding doesn't happen around content. also, arrow stretches bit. 9-patch drawn incorrectly?
textview:
this ended doing it. guess adding background 9-patch directly textview doesn't work. wrap in framelayout
<framelayout android:background="@drawable/notification_bg" android:layout_width="wrap_content" android:layout_height="wrap_content"> <textview android:id="@+id/tv_number_left" android:padding="2dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone"/> </framelayout>
Comments
Post a Comment