Android UI:设计“警报”对话框
作者:互联网
嗨,我正在尝试如下设计警报对话框
我做了如下基本设计:
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);
alertDialogBuilder.setTitle(R.string.share);
final EditText message = new EditText(context);
message.setGravity(Gravity.TOP);
message.setLines(10);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
(int) LayoutParams.MATCH_PARENT,
(int) LayoutParams.MATCH_PARENT);
请给我建议,如何通过警报对话框或其他方式实现此目标
解决方法:
查看我的教程.
http://www.androidianlabs.com/custom-android-dialogs.html
希望有帮助!
标签:android-alertdialog,android 来源: https://codeday.me/bug/20191031/1976545.html