我有对话
popupBuilder = new Dialog(this,android.R.style.Theme_Translucent_NoTitleBar);
popupBuilder.requestWindowFeature(Window.FEATURE_NO_TITLE);
popupBuilder.setContentView(R.layout.settings);
现在我如何动态更改R.layout.setting的视图?
之类的东西final LayoutInflater factory = getLayoutInflater();
final View tev = factory.inflate(R.layout.settings, null);
((TextView)tev.findViewById(R.id.skidki)).setText("Text");
答案 0 :(得分:0)
你可以这样做:
TextView dialogButton = (TextView) popupBuilder.findViewById(R.id.skidki);
无论如何,我建议你创建Android之类的对话框;):