Top "Nine-patch" questions

A NinePatch is a stretchable bitmap image, which Android will automatically resize to accommodate the contents of the View in which you have placed it as the background.

Make button background transparent using selector

Here we go. I have a button that has a non-pressed state background as transparent. As soon as the button …

android android-layout nine-patch android-selector
How to create nine-patch and use it in my App?

I want to create a nine-patch image and use that in my App but I don't know how to create …

android nine-patch
Looking for a 9-patch graphics creation tool

draw9patch seems to be very inconvenient. It takes about 5 minutes to draw all required solid black lines if an …

android nine-patch
android 9-patch graphic doesn't scale in image view

I have <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="…

android imageview nine-patch
How to return to default style on EditText if I apply a background?

I just encountered with a problem that I don't know how to solve. It looks silly but I cannot find …

android android-edittext android-drawable android-resources nine-patch
Android Lollipop 5.1: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x9e985ff8 in tid 4093 (RenderThread) / when using lot of nine patch graphics

I'm using quite a large amount of NinePatchDrawables in the app views. The underlying Bitmaps are cached, so there is …

android nine-patch
Bad 'Patches' in 9-Patch File

I'm attempting to use the Draw9Patch tool from the Android SDK, but immediately upon opening my image with Draw9…

android nine-patch
Problem with 9 patch image as background

I have a list view structure, with Relative layout that uses alternating background images for odd/even elements. I'm trying …

android listview nine-patch
stretch a Image like android nine-patch?

UIImage Method : - (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight. Here the stretchable area is forced to be a single …

ios objective-c iphone ipad nine-patch
Define a custom style (theme) on an Android Switch component

I'm new to Android development and also on Android theming/customization that looks to be a wide subject... I'm trying …

android xml android-layout android-theme nine-patch