Cómo cambiar dinámicamente el color de fondo de la ventana de Android mediante código
lt? ¿xml? versión="1.0 "? codificación = "utf-8"? gt
apariencia? xmlns:Android = "/apk/RES/Android"? gt
lt! - ?Lomo? - gt;
ltdilema
android: radio="9dp "
android:topLeftRadius="2dp "
android:topRightRadius = "2dp "
android:bottomLeftRadius="2dp "
Android:bottomRightRadius="2dp"/gt;lt! - ?Establecer radio de esquina? - gt;
lt! - ?Gradiente? - gt;
lt gradient
Android: color inicial = " @ Android: color/blanco "
Android: color central = " @ Android: color/ negro "
Android: end color = " @ Android: color/negro "
android: useLevel="true "
android: ángulo="45 "
android: type="radial "
Android: centex=" 0 "
android: centerY="0 "
Android :gradientRadius = " 90 "/ gt;
lt! - ?Intervalo? - gt;
lt filler
android: izquierda="2dp "
android: top="2dp "
android: derecha =" 2dp "
Android:bottom=" 2dp "/gt;lt! - ?¿Espaciado en todas las direcciones? - gt;
lt! - ?¿tamaño? - gt;
lt tamaño
android:width="50dp"
Android:height="50dp"/gt;lt! - ?ancho y alto? - gt;
lt! - ?Acolchado? - gt;
lt sólido
Android:color = "@Android:color/white"/ gt;lt! - ?Color de relleno? - gt;
lt! - ?¿Ataque? - gt;
ltstroke
android:width="2dp"
Android:color="@Android:color/black"
android: dashWidth="1dp "
Android: guión brecha = " 2dp "/ gt
lt/shape
;