Hello everyone Recently my brother in gridview using gridview width and height are matchparent, item inside imageview width and height also matchparent then my picture is wider than the width of the column so small I used scaletype centerinside and fitxy fill the column width so that the width and height proportionally Tensile
But the net effect is indeed fill the width of the column width, but the height has not changed ah, it seems to be the default is fixed, unless I manually change the height of the layout imageview 200dp or larger picture height will be larger, which is What is the problem ah great God who help me set the picture to use with the setimagebitmap Thank you first
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
gridview in height refers to the height of the height of the entire gridview instead of item, so matchparent gridview setting does not affect the display height imageview, you will imageview set imageview height matchparent to change the height of the setting item, is the parent container imageview height
No comments:
Post a Comment