Cause: Android comes with a control that doesn't have a mirroring feature, but we can do it ourselves. In fact, it is very simple to rewrite the draw method of the system control, not the OnDraw method. Specific can see the source solution: This is the image I wrote Seekbar, the company needs
Package Com.finals.oilrank.util.view;import Android.content.context;import Android.graphics.canvas;import Android.util.attributeset;import Android.widget.seekbar;public class Myseekbar extends SeekBar {public Myseekbar ( Context context, AttributeSet Attrs) {Super (context, attrs);} @Overridepublic void Draw (canvas canvas) {canvas.save (); Canvas.scale ( -1, 1, getwidth ()/2, GetHeight ()/2); Super.draw ( Canvas); Canvas.restore ();}}
This is very simple. Just still have the problem, is the touch event you have to deal with, of course, here is only the image of the wording, touch the same willing.
[Android] The simplest mirroring system view control