Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You cannot change the resolution of the screen easily (if that is what you are trying to do).</p> <p>So you either need to create a larger picture, or scale it to the required screen size.</p> <p>You should get familiar with all the density, resolution stuff on Android. I can highly recommend reading the Android Developer Documentation on <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">Supporting Multiple Screen Sizes</a>. It does contain a lot of useful information about that topic.</p> <p>It also helps you on how Android can resize images for you.</p> <p>In short some information on how to do it on your own:</p> <p>You can add a <a href="http://developer.android.com/reference/android/view/SurfaceHolder.Callback.html" rel="nofollow"><code>SurfaceHolder.Callback</code></a> to the <a href="http://developer.android.com/reference/android/view/SurfaceHolder.html" rel="nofollow"><code>SurfaceHolder</code></a> uses in your <a href="http://developer.android.com/reference/android/view/SurfaceView.html" rel="nofollow"><code>SurfaceView</code></a>. This callback has a <a href="http://developer.android.com/reference/android/view/SurfaceHolder.Callback.html#surfaceChanged%28android.view.SurfaceHolder,%20int,%20int,%20int%29" rel="nofollow">method</a>, that is called, when the screen resolution changes. You can create a static class, to which you will pass the new size of the screen. This class can calculate the ratio of the screen, and you could assume that you are working always with a 800x480 screen (or whatever you like). You use a method like <code>double MyCoord.x(int)</code>. You pass an x coordinate -- within your assumed 800x480 screen -- and the method returns the real coordinate on the screen, according to the size, you have passed to your static class, from the <code>SurfaceHolder.Callback</code>.</p> <p>That would be ONE possibility you have. To find more detailed explanations and more possibilities, you should read the Developer documentation, that has in my opinion, quite good examples on the most topics :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload