pskink / matrix_gesture_detector

A gesture detector mapping translation/rotation/scale gestures to a Matrix4 object.
Other
134 stars 101 forks source link

Different screen size issue #28

Open kzrfaisal opened 3 years ago

kzrfaisal commented 3 years ago

I placed a box at the top right corner of the screen, saved the matrix and used to it place that box at the saved position. It works fine when viewed on the same screen size at which it was created, but when viewed on different screen sizes which were relatively smaller or larger than the original one, the box does not appear to be at the top right corner of the screen. How can solve this issue with different screen sizes ?

YudizAndroidSanju commented 1 year ago

@kzrfaisal, have you found any solution that works on different screen sizes, if so then can you please share the solution here?

fernan542 commented 1 year ago

Save it via percentage based on layout constraints.

rlee1990 commented 1 year ago

@fernan542 can you provide an example?