android - 9-patch padding doesn't adjust correctly -


adding 9-patch:

enter image description here

seems ok here:

enter image description here

however, after adding android:padding="5dp", padding doesn't happen around content. also, arrow stretches bit. 9-patch drawn incorrectly?

enter image description here

textview:

enter image description here

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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -