private void showBuilder(String title) {
Builder builder = new Builder(this);
builder.setIcon(android.R.drawable.ic_dialog_info);
builder.setTitle(title);
builder.setPositiveButton("发送", new android.content.DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {

}
});
builder.setNegativeButton("返回", new android.content.DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {

}
});
View layout = getLayoutInflater().inflate(R.layout.dialog_comment, (ViewGroup) findViewById(R.id.comment_dialog_layout));
builder.setView(layout);
builder.show();
}

更多相关文章

  1. Android双击返回键退出程序
  2. android 事件分发
  3. android 调用系统图片浏览器并返回图片路径
  4. 一个android访问http资源的便捷工具类――HttpHelper
  5. android 之 读取本地json文件返回string
  6. Android(安卓)获取时间实时更新UI
  7. Android(安卓)使用URLConnection提交请求
  8. android中用socket 接收服务器的消息
  9. Android(安卓)使用 Gmail 来发送邮件

随机推荐

  1. FrameLayout 自定义字母导航条 android:l
  2. 开发5年,在资本寒冬下的 android开发者,该
  3. 做iOS开发程序员10个必需的开发工具和资
  4. Android(安卓)sqlite数据库操作通用框架A
  5. Android(安卓)网络连接——ConnectivityM
  6. Android高级工程师BAT面试题及知识点整理
  7. Android(安卓)主流开源框架(七)Glide 的缓
  8. 学android一定要会Java吗
  9. Android屏幕适配 px,dp,dpi及density的关
  10. Android中使用javah生成jni头文件的正确