error: too many padding sections on right border

浪子不回头ぞ 提交于 2019-12-08 07:53:01

问题


when i build my project it give me error like

I found the reason that, because of 9 patch file i am getting this error. so can any one please look at this 9-patch file for whats wrong in this below image.

also i am using layer list for this drop down which is below

drop_down_drawable.xml

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="rectangle">
            <corners android:radius="2dp" />
            <stroke
                android:width="1dp"
                android:color="@color/black_c4c4c4" />
        </shape>
    </item>
    <item
        android:bottom="@dimen/margin_8"
        android:drawable="@drawable/ic_down_arrow_9"
        android:left="@dimen/margin_8"
        android:right="@dimen/margin_8"
        android:top="@dimen/margin_8">
    </item>
</layer-list>

and this above drawable i am using in Spinner background.

please give solution for that 9 patch file

来源:https://stackoverflow.com/questions/50112281/error-too-many-padding-sections-on-right-border

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!