Android Gauge Animation Question

前端 未结 2 777
天涯浪人
天涯浪人 2020-12-08 09:02

Okay so i\'ve been trying to do this for a couple of days and i am getting no where. So i have the following two images:

The First is a RPM Gauge

2条回答
  •  一生所求
    2020-12-08 09:47

    This is how to draw arcs, from Android ApiDemos: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/Arcs.html

    Then you need to use xfermode to remove a part of the top image by using a canvas derived from a bitmap. You can see one example of this approach here: Make certain area of bitmap transparent on touch

提交回复
热议问题