title: how to give height and width video on web view in android(different different device)?
body: <p>I want give size height and width programmatically inside on webview and i'm using following code :-</p>
  
  <pre><code>    width = (int) (display.getWidth() / 1.25);
      height = (int) (display.getWidth() / 1.25);
  
  String html = "&lt;iframe class=\"youtube-player\" "
              + "style=\"border: 0; width:" + width + "; height:" + height
              + ";" + "padding:0px; margin:0namepx\" "
              + "id=\"ytplayer\" type=\"text/html\" "
              + "src=\"http://www.youtube.com/embed/" + videoId
              + "?fs=0\" frameborder=\"0\" " + "allowfullscreen autobuffer "
              + "controls onclick=\"this.play()\"&gt;\n" + "&lt;/iframe&gt;\n";
  </code></pre>
  
  <p><strong>now how is it seen on emulator</strong></p>
  
  <p><strong>480*800 WVGA (mdpi)</strong></p>
  
  <p>see the video height and width</p>
  
  <p><img src="https://i.stack.imgur.com/YVozF.png" alt="enter image description here"></p>
  
  <p><strong>720*1280 xhpdi</strong></p>
  
  <p>see the video height and width</p>
  
  <p><img src="https://i.stack.imgur.com/iMKIp.png" alt="enter image description here"></p>
  
  <p>i m stuck then how to give size programatically on webview content (image and video).</p>
  
  <p>and im used almost all kind of function and methods but still same problem.</p>