cách thay đổi màu viền bố cục tương đối ?? đây là mã của tôi dưới đây tôi chỉ muốn hiển thị màu đường viền màu đen nhưng hiển thị tất cả bố cục tương đối màu đen. tôi chỉ muốn hiển thị bố trí tương đối màu trắng chỉ borde sẽ là màu đen những gì tôi sẽ làm gì ??cách thay đổi màu viền bố cục tương đối?
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/border5">
<?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="#000000" />
</shape>
</item>
<item android:left="1dp" android:top="1dp" android:bottom="2dp" >
<shape android:shape="rectangle">
</shape>
</item>
</layer-list>
Hỷ, Đó là sử dụng dp tốt hơn thay vì px –