title: Android libgdx big screen resolution
body: <p>How can I support (make an algorithm) for libgdx for supporting multiple screen resolution? I made my app work on HTC Tattoo using if statments with parameters like: </p>
  
  <pre><code>if (Gdx.input.getX()==40) {
  </code></pre>
  
  <p>What is a good algorithm for making this work on bigger screens?
  I tried this but without any result:</p>
  
  <pre><code>publis static int translatex() {
       float p = (float)Gdx.graphics.getHeight()*340;
       return (int) p*Gdx.input.getX();
  }
  </code></pre>
  
  <p>340 is the base x (the x resolution on my phone) used by me on the HTC Tattoo.
  So.....how can I make a function for supporting big screens with absolute values. I don`t want to change the if-statements.</p>