Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Theme and style properties for background image

I read documentation and it says like this "A style can specify properties such as height, padding, font color, font size, background color, and much more" now my question is what is "more". Is that means that I can define different properties for for android:src ? that is something like this

<item name="android:src">@drawable/attachment1</item>

I try background property and it works fine

<item name="android:background">#55FFFFFF</item>

but not src property :-(.

What do I do wrong ?

like image 846
Lukap Avatar asked Aug 24 '11 11:08

Lukap


People also ask

Which property is used for background image?

The background-image CSS property sets one or more background images on an element.

Which style property will resize a background image?

The background-size CSS property lets you resize the background image of an element, overriding the default behavior of tiling the image at its full size by specifying the width and/or height of the image.


1 Answers

Try:

<item name="android:background">@drawable/attachment1</item>
like image 64
johannes Avatar answered Nov 09 '22 18:11

johannes