开发者

Android setImageDrawable set ImageView in default position?

开发者 https://www.devze.com 2023-02-25 16:31 出处:网络
Is it true? More than that s.layout(x1, y1, x2, y2); dont work after setI开发者_如何学GomageDrawable.

Is it true? More than that s.layout(x1, y1, x2, y2); dont work after setI开发者_如何学GomageDrawable. I just want move and rotate Image? Help me please!


If you want to resize you can use the setLayoutParams in your ImageView.

Translate should be in your layout, if you want update it while running you should implement it onDraw in a View.

Rotate can be done in the Canvas at onDraw too.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号