怎么样让一个linearLayout既有边框,又能使背景色为透明边框我知道可以android:background="@drawable/border"border.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF" />
<stroke android:width="1dp" android:color="#808080" />
<padding android:left="1dp" android:top="1dp" android:right="1dp" android:bottom="1dp" />
</shape>透明我知道可以.setBackgroundColor(00000000);但是既有边框,又能使背景色为透明呢?