【发布时间】:2012-09-05 23:35:03
【问题描述】:
有没有可能有类似的东西
drawable/myshape.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="{0}" />
</shape>
然后从 java 类中获取这个可绘制的传递值作为参数。类似的东西
Drawable myshape = ???.getDrawableWithParameters(R.drawable.myshape, 0x00ff00);
【问题讨论】:
标签: android