You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gushoubang Well, try wrapping TextView in a ViewGroup with fixed height or set TextView's height to some dimen. gravity="center" will center text inside TextView.
I guess, that simplest solution would be setting fixed height for your ImageView & setting scaleType="centerCrop". That way image would stretch to ImageView's bounds.
But if there is a need for pixel-perfect image displaying I would recommend obtaining a Bitmap & updating ImageView's layoutParams.height & ScrollableLayout.setMaxScrollDistance()
the textview's height is changged ,how can i use it?
The text was updated successfully, but these errors were encountered: