程序員論壇

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 1521|回復: 0
打印 上一主題 下一主題

Rotate ImageView and FrameLayout correctly 正確旋轉ImageView和FrameLayout

[複製鏈接]

8166

主題

1

好友

2萬

積分

版主

Rank: 7Rank: 7Rank: 7

跳轉到指定樓層
樓主
發表於 2021-4-4 07:05:12 |只看該作者 |倒序瀏覽
正確旋轉ImageView和FrameLayout
Rotate ImageView and FrameLayout correctly
  1. ImageView image.animate().rotation(90).start();
複製代碼
  1. FrameLayout frame.animate().rotation(90).start();
複製代碼
  1. imageView.animate()
  2.             .rotation(90)
  3.             .setInterpolator(new AccelerateDecelerateInterpolator())
  4.             .setDuration(250)
  5.             .setListener(rotateListener)
  6.             .start();
複製代碼
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

程序員論壇

GMT+8, 2024-9-20 06:40 , Processed in 0.033326 second(s), 19 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回頂部
HK Piece免費建立你的網上商店
Pocket Money Easy