If I have defined a Activity:
public class DialogActivity extends Activity{ @Override public void onCreate(Bundle savedInstanceState) { supe
There's a one-line code without hassling with the LayoutParams that is
getWindow().setLayout((int)(width*.8),(int)(height*.25));
This is what I've used before in one of my projects and now searching for, but found it in the same project.