基本上我正在为时间表制作时间指标。它是屏幕截图中的粉红色条。我首先测试了我的nexus 9,一切都是应该的,但在我的galaxy s4(4.3)上显示完全错误.. https://dl2.pushbulletusercontent.com/mf0bjuneBY3pTPiyRFPrrtNY17LBgJK9/Screenshot_20160323-011338.png https://dl2.pushbulletusercontent.com/Xdulw1OzHZTukPEouDy2RVIbA8svnvVV/Screenshot_2016-03-23-01-13-30.png
每列都是相对布局。
指标:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="12dp"
android:id="@+id/time_slider"
android:background="@drawable/time_indicator_view" />
time_indicator_view.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:width="12dp" android:height="12dp">
<shape android:shape="oval">
<solid
android:color="#66444444"/>
</shape>
<size
android:width="12dp"
android:height="12dp"/>
</item>
<item android:width="8dp" android:height="8dp"
android:left="2dp" android:top="2dp">
<shape android:shape="oval">
<solid
android:color="#FF1166"/>
</shape>
</item>
<item android:height="2dp" android:top="5dp" android:left="6dp">
<shape android:shape="rectangle">
<solid
android:color="#FF1166"/>
</shape>
</item>
</layer-list>
其他一切都完美无缺。这是怎么回事?