Computer Hope

Software => Computer programming => Topic started by: medico6601 on September 21, 2017, 06:41:02 AM

Title: I got a problem
Post by: medico6601 on September 21, 2017, 06:41:02 AM
Hi there, My name's Thurner
I'm developing a small Android app and I've encountered such a problem. I want to move a object across the screen in a particular amount of time (1 second), regardless of the screen size or density. I tried moving the object with DPI, but I don't get the same result on different screens เล่นคาสิโนบนมือถือ (http://www.ufa365.com/เล่นคาสิโนบนมือถือ/)

Title: Re: I got a problem
Post by: DaveLembke on September 21, 2017, 07:19:53 AM
Seems as though you will need a way to know the area of the screen and then preset speeds for display sizes for the program to go with such as a smaller area screen it would get from one side to the other in 1 second at a slower rate then a large screen which the object would move faster across the screen to get to the other side within that same 1 second. My thoughts on this are that for small displays the game or whatever it is will appear to run slower and on larger screens faster. Thinking you need to either have the user specify a screen size or have some sort of hardware detection for size of display to be part of the equation.
Title: Re: I got a problem
Post by: Squashman on September 27, 2017, 11:06:33 AM
Going forward try to summarize your problem as the name of your Topic.  Like maybe Android Development movement.