Examples of using 9patch:
Finding draw9patch tool
In the browser search for square icon
- top - stretch horizontally
- left - stretch vertically
- right - content area
- bottom - content area
Actual look of the 9patch:
Copy your 9patch pop_up_background_82x82.9.png to drawable folder:
conventer/src/main/res/drawable-mdpi/pop_up_background.9.png
<TextView
android:id="@+id/resultingValue"
android:text="..."
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="60"
android:background="@drawable/pop_up_background" />