mercredi 1 avril 2015

Container, Image and Text: How to get it working together?

Well, I have a Container, an Image and some Texts (inside another container), this way:



<RelativeLayout height="wrap_content">
<ImageView height="fill_parent"/>
<LinearLayout>
<TextView/>
<TextView/>
</LinearLayout>
<RelativeLayout/>


The image associated with ImageView (yes, it is a background image) is bigger than the height of all text together. Thus, I would like to "crop" it inside RelativeLayout. But that ImageView always take full size when I set it to fill_parent. :(


What can I do?


P.S.: I already tried to use that image as background of RelativeLayout. Not working also.


Pleaaase, help!!


Aucun commentaire:

Enregistrer un commentaire