如何设置alertdialog的高度是固定的
1个回答
展开全部
设定alertdialog的高度和宽度:
LayoutInflater mInflater = (LayoutInflater) getContext()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = mInflater.inflate(R.layout.recordlayout, null);
view.setMinimumHeight(200);
view.setMinimumWidth(500);
LinearLayout layout = (LinearLayout) view
.findViewById(R.id.id_recordlayout);
LayoutInflater mInflater = (LayoutInflater) getContext()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = mInflater.inflate(R.layout.recordlayout, null);
view.setMinimumHeight(200);
view.setMinimumWidth(500);
LinearLayout layout = (LinearLayout) view
.findViewById(R.id.id_recordlayout);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询