Android make a dialog appear in fullscreen
问题 I need the dialog to fill the screen except for some space at the top and the bottom. I've search for a solution but couldn't find one probably because I'm declaring it in an onClickListener . Can someone please give a solution? Activity code: sort.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub AlertDialog.Builder sort = new AlertDialog.Builder(HomeScreen.this); // Get the layout inflater LayoutInflater inflater =