hi, thanks forr your response.
I tried it but it does not take the background image. However it takes the background color for example, depending on device dpi…
I have this css:
@media
(-webkit-min-device-pixel-ratio: 1),
(min-resolution: 100dpi) {
/* Retina-specific stuff here */
.icono_vozciudadana
{
background-image: url('resources/Android/drawable-ldpi/logovoz_32x32.png');
background-repeat: no-repeat;
}
}
@media
(-webkit-min-device-pixel-ratio: 1),
(min-resolution: 150dpi) {
/* Retina-specific stuff here */
.icono_vozciudadana
{
background-image: url('resources/Android/drawable-mdpi/logovoz_32x32.png');
background-repeat: no-repeat;
}
}
@media
(-webkit-min-device-pixel-ratio: 1.5),
(min-resolution: 240dpi) {
/* Retina-specific stuff here */
.icono_vozciudadana
{
background-color:Black;
background-image: url('resources/Android/drawable-hdpi/logovoz_32x32.png');
background-repeat: no-repeat;
}
}
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 320dpi) {
/* Retina-specific stuff here */
.icono_vozciudadana
{
background-image: url("resources/Android/Drawable-xhdpi/logovoz_32x32.png");
background-repeat: no-repeat;
}
}
@media
(-webkit-min-device-pixel-ratio: 3),
(min-resolution: 490dpi) {
/* Retina-specific stuff here */
.icono_vozciudadana
{
background-image: url("resources/Android/Drawable-xxhdpi/logovoz_32x32.png");
background-repeat: no-repeat;
}
}
@media
(-webkit-min-device-pixel-ratio: 4),
(min-resolution: 640dpi) {
/* Retina-specific stuff here */
.icono_vozciudadana
{
background-image: url("resources/Android/Drawable-xxxhdpi/logovoz_32x32.png");
background-repeat: no-repeat;
}
}
and i have this button, for example:
{ view: “button”, type: “image”, id: “ibm”, image: “icon_blanco_24x24.png”, css: “icono_vozciudadana”, },
i do not know what to set on image attribute.
An you share to me a sample please?
Thanks in advance!
Regards!