साथ drawable यह संभव तरहएंड्रॉयड मापदंडों
drawable/myshape.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="{0}" />
</shape>
कुछ है करने के लिए और उसके बाद जावा वर्ग से मापदंडों के लिए इस drawable गुजर मानों को लेकर है। जैसे
Drawable myshape = ???.getDrawableWithParameters(R.drawable.myshape, 0x00ff00);
http://stackoverflow.com/questions/8396779/android-xml-Drawable- के डुप्लिकेट को देखने के लिए क्लासकास्ट अपवादों को देखने की आवश्यकता थी। पैरामीटर – Mene