开发者

Android: Implement azimuth orientation sliding view

开发者 https://www.devze.com 2023-04-07 04:11 出处:网络
I am trying to create a ruler view based on azimuth compass orientation value. The idea is to place a small view at the bottom of a camera view which slides to the left or to the right according to th

I am trying to create a ruler view based on azimuth compass orientation value. The idea is to place a small view at the bottom of a camera view which slides to the left or to the right according to the azimuth value obtained from the "orientation" sensor.

Something like this:

开发者_高级运维

Android: Implement azimuth orientation sliding view

My main conceptual problem is to understand how I can wrap up the bar if I keep rotating the phone in the same direction. I am looking for ideas on how to solve this problem! Can this problem be solved with Bitmaps?

Which classes/tools are suitable for this? Are there any examples on how to do this?

Thank you!

0

精彩评论

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