【问题标题】:Nine-Patch Not Working In IntelliJ九补丁在 IntelliJ 中不起作用
【发布时间】:2014-02-05 20:25:09
【问题描述】:

我的应用中正在使用一个九补丁图像。当我使用 Maven 构建应用程序时,图像工作正常。当我使用 IntelliJ Idea 13 构建时,图像被视为普通 PNG(显示黑色边框)。

我已验证 Idea 使用与 Maven 相同的 Android SDK 和 Java JDK。我尝试使用已知的良好九补丁图像并看到相同的行为。该问题似乎特定于 IntelliJ,构建服务器生成的构建没有问题。

我正在尝试将此图像 与此代码一起使用

 <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"/>

【问题讨论】:

标签: android maven intellij-idea


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-05-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-03
    相关资源
    最近更新 更多