楼主:
Jichang (C.C.Lemon)
2016-09-26 10:41:22请问 Android 的XML 之间可以传递变量吗?
例如
border.xml
<shape >
<stroke android:width="1px" />
</shape>
A.xml
// 想设定定 px =1
<Button android:background="@drawable/border" />
B.xml
想要设定 px = 2
<Button android:background="@drawable/border" />
这样有办法实现吗?
谢谢!