javascript - Create a dynamic radar for an android application -


I would like to create a dynamic radar for Android apps in the Android studio that looks like this:

How can I do this? Create a custom view in this way and add it to a linear layout here

Here is a starting point.

class radarblip {float x; Float Y; Public zero set x (float x) {this.x = x; } Public float getX () {return x; } ....} Private Class RadarVision Extension {list & lt; Radarblip & gt; MRadarBlips; Public timer visual view (reference reference, list & quot; radarlips & gt; radarblips, presentraderangle) {super (reference); SetLayoutParams (new layoutprimm (layout paramount. MATCH_PARENT, layout paragraph MATCH_PARENT)); MRadarBlips = Radarblip; } @ Override Protected Wired On Draw (Canvas Canvas) {For (Int i = 0; I

Then you want to call the scene in the timer. Something like this:

  new countdown timer (timeline, 15) {tick on public zero (long Unilefinish till the time {Float radar angle = ((long) milions are not available)% ((long) time forward) * 360F; radarviv mRadarView = new radarview (My Activity, this radarpoint, radar angle); radarLayout.removeAllViewsInLayout (); radarTimerLayout.addView MRadarView; Timeline = Million Finish;} Public void onFinish () {}} .start ();  

It would be better to use object animator rather than a timer, Battery closure and non-enumeration in the animator When there is a tendency, even if you add a function to stop it.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -