线型不';t出现在Android API 21中
我正在尝试在线型不';t出现在Android API 21中,android,android-shapedrawable,Android,Android Shapedrawable,我正在尝试在Android中制作线条。除了API21之外,它在所有Android版本中都可以正常工作 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <size android:height="3px" android:width="10px"
Android
中制作线条。除了API
21之外,它在所有Android
版本中都可以正常工作
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line">
<size
android:height="3px"
android:width="10px" />
<stroke android:color="@color/brightPurple" />
设置非零笔划宽度
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<size
android:height="3px"
android:width="10px" />
<stroke
android:color="@color/brightPurple"
android:width="1dp" />
</shape>