我是Android新手。
是否可以在Android中的弹出窗口中实现TextBox,Button和动态列表。
请帮助我。
感谢。
答案 0 :(得分:0)
是的,您可以创建自己的自定义对话框。 我在我的java文件中使用了以下代码
Dialog add_themedialog = new Dialog(addthemecontext);
add_themedialog.setContentView(R.layout.add_new_theme);
add_themedialog.setTitle("Add New Theme");
final EditText et_entertheme = (EditText)add_themedialog.findViewById(R.id.et_dialog_addtheme);
Button btn_addtheme = (Button)add_themedialog.findViewById(R.id.btn_dialogaddtheme);
Button btn_canceltheme = (Button)add_themedialog.findViewById(R.id.btn_canceltheme);
xml文件add_new_theme包含一个文本框,一个edittext和2个按钮..
询问我是否有任何不清楚的事情,或者您是否需要完整的源代码。 : - )