मैं कुछ इस तरह की कोशिश की, लेकिन मैं अटक:कैसे वर्तमान थीम से पृष्ठभूमि रंग प्राप्त करने के लिए प्रोग्राम के रूप में
TypedValue typedValue = new TypedValue();
if (this.parentActivity.getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true))
{
// how to get color?
}
: पृष्ठभूमि = "एंड्रॉयड: attr/colorBackground" – ademar111190
मैं परीक्षण किया है और निर्धारित किया है कि 'एंड्रॉयड: attr/colorBackground'' styles.xml' के आइटम से संबंधित '<आइटम नाम =" एंड्रॉयड : रंगबैकग्राउंड "> @ रंग/आपका रंग यहाँ'। –
@ ademar111190 यह जवाब होना चाहिए !!!! – Alexandr