我正在使用对话框显示7张图片。对话框完美显示6个图像的问题和第7个图像(在6个图像的右侧)被截断的问题。即使我用按钮替换第7个图像,它仍然被截断,就像对话框具有固定大小一样。根据我添加的视图,对话框不会展开吗?这真是令人讨厌
dialog = new Dialog(this);// this would refer to the context of the current activity
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.origpickgame);
ColorDrawable dialogColor = new ColorDrawable(Color.GRAY);
dialogColor.setAlpha(100);
dialog.getWindow().setBackgroundDrawable(dialogColor);
dialog.getWindow().setGravity(Gravity.TOP);