我已经创建了一组在Android 4.4完美地工作的形状: 然而,当我测试2.3: 底部角部被切换,并且它被冷凝(这可能是高度问题)。 因此我决定创建一个像drawable-v14
这样的文件夹,并为不同的版本分配不同的形状,但我需要知道哪些Android版本存在缺陷。我无法在所有版本上测试它!的Android形状错误的Android版
EDIT
形状为按钮号7:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle">
<solid android:color="@color/rounded_stroke_color" />
<corners
android:topLeftRadius="0dp"
android:topRightRadius="0dp"
android:bottomLeftRadius="@dimen/rounded_radius_default"
android:bottomRightRadius="0dp" />
</shape>
</item>
<item
android:top="@dimen/rounded_stroke_normal_half"
android:bottom="@dimen/rounded_stroke_normal"
android:left="@dimen/rounded_stroke_normal"
android:right="@dimen/rounded_stroke_normal_half">
<shape android:shape="rectangle">
<solid android:color="@color/rounded_fill_color" />
<corners
android:topLeftRadius="0dp"
android:topRightRadius="0dp"
android:bottomLeftRadius="@dimen/rounded_radius_default"
android:bottomRightRadius="0dp" />
<padding
android:left="@dimen/rounded_padding_left"
android:right="@dimen/rounded_padding_right" />
</shape>
</item>
</layer-list>
BTW的值被存储在不同的资源文件。
我从来没有听说过类似的bug在android中。你可以发布你的绘图和布局文件。我想你错过了一些东西。我想你已经错过了填充(可以在Android 4.4中默认的风格中定义,但在Android 2.3中没有定义)。其他问题呢,我需要看到drawables和布局文件。 –