que hemos probado algo como esto, pero me quedé:cómo obtener el color de fondo del tema actual mediante programación
TypedValue typedValue = new TypedValue();
if (this.parentActivity.getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true))
{
// how to get color?
}
en androide xml: fondo = "android:? Attr/colorBackground" – ademar111190
I ensayaron y se determinó que androide ':? Attr/colorBackground' corresponde a la' artículo styles.xml' ' @ color/yourColorHere'. –
@ ademar111190 ¡esta debería ser la respuesta! – Alexandr