當我使用安卓虛線其工作正常在小屏幕,但不工作在三星S3設備和更高版本。Android短跑/點線問題?
截圖
而且
繪製/ dashline.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line" >
<stroke
android:dashWidth="20sp"
android:dashGap="20sp"
android:width="2dp"
android:color="#FF0000" />
</shape>
XML
<ImageView
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="6dp"
android:background="@drawable/dash_line" />
如果有人能幫助我在這,任何想法是明顯的。
的http://stackoverflow.com/a/26296229/185022 –
可能重複的副本[虛線是實際的當應用程序運行在真正的Android設備上時,盟友不點綴](http://stackoverflow.com/questions/18931679/dotted-line-is-actually-not-dotted-when-app-is-running-on-real-android - 設備) –