简体   繁体   中英

Nine-Patch Not Working In IntelliJ

I have an Nine-Patch image that is being used in my app. When I build the app with Maven, the images work fine. When I build with IntelliJ Idea 13, the images are treated as a normal PNG (showing the black border) 截图 .

I've verified that Idea is using the same Android SDK and Java JDK as Maven. I've tried using a known, good Nine Patch image and see the same behavior. The issue seems specific to IntelliJ, builds produced by the build server have no problem.

I'm trying to use this image SampNine补丁 with this code

 <Button
    android:id="@+id/shareButton"
    style="?android:attr/buttonStyleSmall"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentRight="true"
    android:layout_below="@+id/textView"
    android:background="@drawable/bt_classic"
    android:padding="10dp"
    android:text="Share This"
    android:textColor="@color/color_white" 
    android:layout_marginRight="10dp"/>

最终这是IntelliJ中的错误,该错误已在http://youtrack.jetbrains.com/issue/IDEA-120474中报告,并已在13.1.3中修复。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM