hocinao Posted March 10, 2011 Share Posted March 10, 2011 salut tout le monde , j'ai une image qui a la largeur infénieure à celle de l'écran , et le je vx afficher cette image centrée dans une ImageView avec sa propre taille, Je veux savoir comment afficher une image dans une imageView avec ses dimensions réelles plzzzzzzzzzzzzzz Help me :'( Link to comment Share on other sites More sharing options...
Cyril Mottier Posted March 10, 2011 Share Posted March 10, 2011 Regarde l'attribut android:scaleType de ImageView ;). Je pense que "centerCrop" peut répondre à ton problème. Link to comment Share on other sites More sharing options...
jokamax Posted March 11, 2011 Share Posted March 11, 2011 Ou tu encapsule ton imageView dans un linearlayout horizontal qui fill_content. Ton imageview en wrapcontent et du centre ^^ Link to comment Share on other sites More sharing options...
hocinao Posted March 11, 2011 Author Share Posted March 11, 2011 merci les amis ;) c est résolu par : getImgView().setScaleType(ScaleType.CENTER); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.