nine-patch Questions

6

Solved

I want to create a nine-patch image and use that in my App but I don't know how to create it? I've searched through the Android source code on the Web and I can't seem to find any examples of this...
Amorino asked 17/10, 2011 at 11:29

4

Solved

I am successfully building a 9patch drawable at runtime on Android 3.0+ using the excellent gist provided by Brian Griffey (found here). Essentially I load the raw (no patches) graphic file from t...
Amundsen asked 12/5, 2013 at 16:15

2

Solved

**How to achieve this ** i tried 9 patch there i cant make this and no direct one available
Leprosy asked 13/4, 2013 at 16:16

1

Solved

I'm trying to make a callout graphic in Android. I'm not married to the idea of using a 9-patch-drawable, but I think it's the right way to go. I'm essentially trying to make a button with a little...
Deadradeadweight asked 4/4, 2013 at 1:35

2

Solved

I would like to have on my Android application an ActionBar with a bottom line. This line should looks like this with only 4 colors : To get this effect I use a 9patch but instead of showing the ...
Jilli asked 20/3, 2013 at 10:10

1

Solved

I'm trying to use a Nine Patch as a background for a Libgdx Scene2d UI button. It is loading, buts it is really ugly. I can see the "meta-data" pixels, and its being stretched as if it were just a ...
Grus asked 12/3, 2013 at 7:40

3

Solved

May I know how I can change the color of divider in LinearLayout? <LinearLayout android:layout_width="match_parent" android:layout_height="48dp" android:orientation="horizontal" android:div...
Gaffney asked 2/3, 2013 at 4:42

1

Consider the above image. - The dotted line demarcates the 9-Patch png I will slice out of a photoshop file. I need it to create a popup box. - The box incorporates a dropShadow as shown by the...
Hesitant asked 20/2, 2013 at 5:6

5

Solved

I tried to convert all my buttons background to .9.png, but I have a problem with Eclipse. I created my nine patch .png with the tool, but since I put it in my /res/drawable folder, I have the fol...
Saipan asked 3/12, 2010 at 16:14

2

Solved

I am using a nine patch image as a drawable for a selector's item element. The nine patch image is here: The image that finally gets rendered is this (emulator & device screenshot, both devi...
Impetus asked 7/2, 2013 at 15:13

1

Solved

When using a 9-patch image as a background, the padding seems to be always derived from the 9-patch image. Even if you do not use a padding bar in the 9 patch image it uses the drawable. If the ...
Segovia asked 30/12, 2012 at 22:8

2

Solved

The actual image is this: the red boxex are where i made 1 px black likes. Even the preview shows fine. So no problem with 9-patch but the image i get for the following layout is: <ImageView ...
Janiuszck asked 19/10, 2012 at 15:8

2

Solved

I'm testing on HTC Desire which is a hdpi device. The problem is clear when you look at the image: And here is how my 9-patch (made with standard 9-patch tool) looks (zoomed): The left image ...
Doss asked 10/5, 2012 at 14:48

1

I need to do a container with this background : the background has to repeat itself within this shape (rectangle with rounded top corners). because it's for what i know impossible to perform tha...
Canarese asked 18/6, 2012 at 13:43

5

My designer works on Illustrator and exports all the resources for mdpi, hdpi and xhdpi (and also for iOS res) with a script. For buttons and streachables images, I'm looking for the best solution ...
Crestfallen asked 13/7, 2012 at 11:26

2

Solved

I am trying to create a custom-styled seekbar. I have two nine-patch images one is a gray stretching bar search_progress.9.png (background color) and the other is a green stretching bar search_prog...
Hassett asked 21/8, 2011 at 22:5

5

Solved

I just made a nine-patch it is saved like border.9.png from the draw 9 patch tool. in my android layout editor, it shows up like it is going to be a proper 9 patch graphic, stretched out yet not ...
Heads asked 12/12, 2011 at 19:49

1

Solved

Provided utility looks bad, for example it does not allow to do "Save As", or to draw several button states with similar slicing. Is it possible to draw 9.png in photoshop? I noticed, that g...
Golda asked 18/5, 2012 at 13:35

3

Solved

We use 9png mainly to reduce the size of the apk. But, I am facing a peculiar problem. I am not sure in which folder I have to place the 9pngs in. I had put them in HDPI folder. Since Android is 'c...
Bybee asked 3/5, 2012 at 9:22

3

Solved

In a 9patch png, there are black edges in its four sides, but there is usually difference between the left to right, and the up to down side. Why? How does this difference impact?
Letterhead asked 23/12, 2010 at 10:4

2

I want to use two nine patches inside LayerDrawable <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/solid"> <nine-patch android:src...
Grum asked 21/5, 2011 at 9:34

4

Solved

NinePatch: Screenshot: Layout XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_par...
Dowsabel asked 20/7, 2011 at 18:37

2

Solved

I have the same 9-patch images in MDPI / HDPI / xhdpi. Is there a particular reason why it will not be saved for the smallest size? The stretchable areas scale automatically when the content is gre...
Shelashelagh asked 30/3, 2012 at 10:44

7

Solved

Android NinePatch images seem to be standard .png files with extra information. Is there a spec for the format anywhere, as I'd like to be able to implement this on other platforms?
Breastpin asked 26/4, 2010 at 22:10

1

Solved

I've got this XML layout. The frame_top_widget_holo is a 9-patch drawable with padding lines on the bottom and right. It also has lines on the top and the left for the stretch bounds. It's set as t...
Gnawing asked 18/12, 2011 at 23:43

© 2022 - 2024 — McMap. All rights reserved.