Android 如何使用笔划设置矩形边框的不同颜色

Android 如何使用笔划设置矩形边框的不同颜色,android,Android,如果只是使用笔划获得上边框或左边框,如何。是否可以为不同的边框设置不同的宽度 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp"> <solid android:color="#FAFAFA"/> <

如果只是使用笔划获得上边框或左边框,如何。是否可以为不同的边框设置不同的宽度


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
 <solid android:color="#FAFAFA"/>
 <stroke android:width="1px" android:color="#cccccc" />
 <corners android:bottomRightRadius="10dp" android:bottomLeftRadius="10dp" 
     android:topLeftRadius="0dp" android:topRightRadius="0dp"
/>

</shape>

希望您能看到我正在使用的xml。谢谢

您需要在问题中添加更多细节。“使用笔划”是什么意思?您将其标记为Android,这意味着您正在Android中显示某些内容?openGl?它对矩形的不同边也使用不同的颜色吗?