Gradle (Android Studio) won't compile 9patches
Asked Answered
B

1

7

I have a problem, I cannot compile this 9patch with Android Studio. It is from the Google Play Music application so it should work. I have made it an 9patch with the "draw9patch.bat" from the Androird SDK tools. But I only get this error: "Gradle: No marked region found along edge. - Found along top edge."

Any help would be estimated! Thanks in advance /Måns

Binary answered 11/7, 2013 at 14:56 Comment(0)
L
5

Try using the SDK tool draw9patch. That will allow you to quickly view the 9patch and add your missing sizer pixels (which the error indicates the top border sizing pixels are missing).

Latini answered 11/7, 2013 at 14:59 Comment(3)
Yeaaaah, I don't know so much about 9patches, so here's the result: i.imgur.com/pgzTR1V.png Please take a look if you want :)Binary
Well, for a ninepatch to work, you will need to place pixels at the left and top most boundaries of the image to tell the 9patch parser where it is safe to expand the image. Essentially, draw a line at the left and top of your image using draw9patch.Latini
developer.android.com/tools/help/draw9patch.html Here is more assistance if you need itLatini

© 2022 - 2024 — McMap. All rights reserved.