habe ich versucht, so etwas, aber ich fest:wie Hintergrundfarbe von aktuellen Thema zu erhalten programmatisch
TypedValue typedValue = new TypedValue();
if (this.parentActivity.getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true))
{
// how to get color?
}
bei xml android: background = "android: attr/colorbackground" – ademar111190
I getestet und festgestellt, dass 'android: attr/colorBackground' entspricht dem' styles.xml' Punkt '- @ color/yourColorHere
'. –
@ ademar111190 das sollte die Antwort sein !!!! – Alexandr