建立在对webView控件有了一定的认识和了解之后,我们就可以继续研究一下这个控件了,这篇文章主要介绍一下如何使webView与ProgressDialog结合。
WebView 组件支持直接加载网页,可以将其视为一个浏览器,要实现该功能,具体步骤如下:
1.新建xml布局文件,如下:
<RelativeLayout xmlns:android="http://schemas.andro...
分类:
移动开发 时间:
2014-10-21 10:24:03
阅读次数:
161
============问题描述============ xml下面代码一个启动activity的onCreate过程上AlertDialogdialog;LayoutInflaterlayoutInflater=LayoutInflater.from(ct);...
分类:
其他好文 时间:
2014-10-20 23:17:27
阅读次数:
211
错误报告:10-20 14:34:46.565: E/AndroidRuntime(23098): FATAL EXCEPTION: main10-20 14:34:46.565: E/AndroidRuntime(23098): android.view.WindowManager$BadToke...
分类:
其他好文 时间:
2014-10-20 16:38:32
阅读次数:
151
============问题描述============ 大家好,我在android上写了个应用,自己定义了个myalterdialog继承自AlertDialog,我通过getWindow().setLayout的方式,依照屏幕的大小,按照一定比例调节这个dialog的宽度。但是发现个奇怪的事情,...
分类:
其他好文 时间:
2014-10-19 23:00:49
阅读次数:
273
============问题描述============ packagecom.example.dialoglogdemo; importandroid.app.AlertDialog;
importandroid.app.ProgressDialog;
importandroid.content....
分类:
其他好文 时间:
2014-10-19 22:49:43
阅读次数:
187
AlertDialog alert = new AlertDialog.Builder(this).create();WindowManager.LayoutParams lp =alert.getWindow().getAttributes();// lp.x=0;lp.y=100;alert.s...
分类:
其他好文 时间:
2014-10-18 13:56:35
阅读次数:
176
builder = new AlertDialog.Builder(getActivity()).setTitle(" ").setMessage(" ").setPositiveButton("确定", new DialogInterface.OnClickListener() {@Overrid...
分类:
其他好文 时间:
2014-10-18 13:53:23
阅读次数:
254
AlertDialog salert = new AlertDialog.Builder(this).create();salert.show();//******************改变alertdialogWindow dialogWindow = salert.getWindow();di...
分类:
其他好文 时间:
2014-10-18 13:51:44
阅读次数:
162
点击AlertDialog 关闭之后再点击报错:The specified child already has a parent. You must call removeView() on the child's parent first.意思是这个子view 已经有个父view了,你现在要使用的...
分类:
其他好文 时间:
2014-10-18 13:50:44
阅读次数:
170
AlertDialog Dialog = new AlertDialog.Builder(Huntinfo.this).create();Dialog.show();Dialog.getWindow().setGravity(Gravity.BOTTOM);Dialog.getWindow().se...
分类:
移动开发 时间:
2014-10-18 13:47:58
阅读次数:
248