android DialogBuilder
来源:互联网 发布:网络监控是什么 编辑:程序博客网 时间:2024/06/05 22:34
Dialog dialog=new DialogBuilder(this).setView(R.layout.alert_view).create(); dialog.show();去除title
找view中的
dialog.<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">findviewbyid()</span>
import android.app.Dialog;import android.content.Context;import android.view.View;import android.view.Window;/** * Created by sunger on 15/5/29. */public class DialogBuilder {private Context context; private View dialogView; private int dialogViewId=-1; public DialogBuilder(Context context){ this.context=context; } public Dialog create(){ Dialog dialog=new Dialog(context); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); if (dialogView!=null) dialog.setContentView(dialogView); else if(dialogViewId!=-1) dialog.setContentView(dialogViewId); return dialog; } public DialogBuilder setView(View v){ this.dialogView=v; return this; } public DialogBuilder setView(int viewId ){ this.dialogViewId=viewId; return this; }}
0 0
- android DialogBuilder
- view右对齐 findviewbyid dialogbuilder SharedPreference 的使用
- 实现自己的DialogBuilder封装:大小、显示位置和动画
- Android
- android
- Android
- android
- android
- Android
- Android
- android
- android
- android
- Android
- Android
- android!!!
- android
- android
- 导入微信sdk后报错
- sqlite3 使用详解
- 智能自助洗车机在“北京国际会议中心”创业对接会上大放异彩
- The application could not be verified.
- Java HashMap实现详解
- android DialogBuilder
- 通知notification
- swift教程-使用UIGestureRecognizer
- 虚拟主机数据库备份
- [latex]图片
- js 正则表达式的问题
- 数据可视化:使用TopoJSON画图
- SequenceInputStream合并流的使用
- poj 3286