All threads / Converting a regular coordinate system to the dimensions of an Android View
Ask A Question

Notifications

You’re not receiving notifications from this thread.

Converting a regular coordinate system to the dimensions of an Android View

soumyarani asked in Javascript

I am trying to convert a regular coordinate system to a default android view

After understanding the android view coordinates came to know that the gesture value of the coordinate is (0,0) at the top left so is there any possible way to plot like a normal graph where the value must be between -1 to 1 like the graph with the center of the screen as (0,0).

This is the default android coordinates

Quite complicated compared to my current knowledge. Hope you will find the answer soon. lolbeans.

This is the default android coordinates

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 70,078+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.