I saw some post on stackoverflow to change the height and width of the dialog box but when i implemented that in my code the dialog box doesn't respond to it. Here I'm attaching some snippet that i'm using for my dialog box.
Can you guys help me out to sort it out please !!!
Code Used
LayoutInflater li = LayoutInflater.from(Inv.this);
View promptsView = li.inflate(R.layout.importdata, null);
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(
InventoryCount.this);
alertDialogBuilder.setView(promptsView);
// Listener1 of promptsView
// Listener2 of promptsView
// Listener3 of promptsView
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialogBuilder.setTitle("Any Thing");
alertDialog.getWindow().setLayout(300, 900);
alertDialog.show();