How set imageview scaletype to topCrop

前端 未结 3 500
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-06 01:23

I\'m coding android and I have a imageview. I want to set scaletype of this to topcrop. I could find centercrop in options, but it\'s not my request. How do I do?

3条回答
  •  孤城傲影
    2020-12-06 01:33

    I just wanted a temporary solution without excess work . Try this

    
    

    scrollY pulls your image up or down. Try it with different dp's and you 'll find the right size.

提交回复
热议问题