Android的用户界面:设计警报对话框 [英] Android UI: designing Alert dialog
本文介绍了Android的用户界面:设计警报对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想设计警告对话框,如下
Hi I am trying to design alert dialog as below
我做了基本设计如下:
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);
请给我提供建议,我怎么能做到这一点与警告对话框,或另一种方式
Please give suggestion to me, how can I achieve this with alert dialog or another way
推荐答案
检查出我的教程。
http://www.androidianlabs.com/custom-android-dialogs.html
希望帮助!
这篇关于Android的用户界面:设计警报对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文