Monday, March 10, 2014

How to set width align ImageView


When the display image, the aspect ratio of the screen and the aspect ratio of the picture is not the same, only to fill the width in the height direction of the screen other than as may be, or may not be covered with the screen, but the aspect ratio of the picture remains changed.

How to set parameters?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
With matrix geometric bloom, but the estimated edge bloom picture is black
Reply:
android: adjustViewBounds = "true"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: maxWidth = screen width
Reply:
Upstairs, the "screen width" can not write go die?
Reply:
reference to the third floor vnking reply:
Upstairs, the "screen width" can not write go die?

Caesar first try
Reply:
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: scaleType = "fitStart"

No comments:

Post a Comment