title: Libgdx and Android, How to make images resolution and density independence? How?
body: <p>In my libgdx's game, I decided to use all space in each device so
  in my screen I set dimension in this way:</p>
  
  <pre><code>stage = new Stage(new ScreenViewport());
  </code></pre>
  
  <p>when I have to add an actor I resize it setting the width proportionally, so for example:</p>
  
  <pre><code>actor.setWidth(1/2f *  Gdx.graphics.getWidth())
  stage.addActor(actor);
  </code></pre>
  
  <p>But it doesn't work well, because I use very big image (512x512) and each time it will be resizing setting width and height.
  So for example if the images is 512x512 and resizing, then is not render well like a 128x128 image... Because it's too big... How can I render it correctly?</p>
  
  <p>How I can make this resolution and density independence?</p>
  
  <p>Thanks!!!</p>