E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
alertdialog
[置顶] Android中显示
AlertDialog
对话框
Android中显示
AlertDialog
代码newAlertDialog.Builder(getApplicationContext()) .setTitle(R.string.search_result_is_null_alert_title
twlkyao
·
2013-11-27 19:00
android
界面设计
捕捉返回键,实现退出确认(参考版)
这个功能很简单,就是调用出方法onBackPressed,实现里面的
AlertDialog
监听就好了。功能代码://捕捉返回键,实现退出程序的功能 @Override p
vaecer
·
2013-11-25 09:00
Android通过MCC+MNC实现锁卡
packagecom.dingchao.phonemanagerutil;importjava.util.ArrayList;importandroid.app.Activity;importandroid.app.
AlertDialog
chaod5659
·
2013-11-20 15:03
android开发
Android学习笔记进阶之在图片上涂鸦(能清屏)
package xiaosi.handWriting; import android.app.Activity; import android.app.
AlertDialog
; import
zhang31jian
·
2013-11-19 10:00
android的
AlertDialog
代码如下: /** 弹出对话框*/ new
AlertDialog
.Builder(MainActivity.this) //设置标题 .setTitle("
羊咩咩
·
2013-11-17 15:00
AlertDialog
操纵系统ContentProvider实例
packagecom.android.xiong.getsystemcontentprovidertest; importjava.util.ArrayList; importandroid.app.Activity; importandroid.app.
AlertDialog
x605940745
·
2013-11-15 16:00
Android中的PopupWindow详解
Android的对话框有两种:PopupWindow和
AlertDialog
。
knxw0001
·
2013-11-14 10:00
我的android 第4天 - Dialog
,对话框不易过多 常见对话框 一、标准对话框 二、菜单式对话框 三、复选对话框 四、文本输入对话框 1、标准对话框实现 •初始化对话框构建器
AlertDialog
.Builder
_小菜鸟
·
2013-11-13 21:00
android
简单模拟Android中
AlertDialog
的Builder设计模式
在Android中经常要使用
AlertDialog
来显示一些简单的窗口,通常的写法类似下面的代码:AlertDialogdialog=newAlertDialog.Builder(MainActivity.this
MrSimp1e
·
2013-11-12 16:10
设计模式
简单模拟Android中
AlertDialog
的Builder设计模式
在Android中经常要使用
AlertDialog
来显示一些简单的窗口,通常的写法类似下面的代码: AlertDialogdialog=newAlertDialog.Builder(MainActivity.this
bboyfeiyu
·
2013-11-12 16:00
Activity has leaked window that was originally added 问题解决
有2种解决方案:1): @OverrideprotectedvoidonPause() {super.onPause(); //关闭对话框
AlertDialog
.dismiss();}2):
tw19811220
·
2013-11-11 13:00
对话框 (
AlertDialog
& ProgressDialog)
本文是对网上的文章《Android开发指南-用户界面-对话框》的部分内容进行简化,并加上自己的某些理解。里面的相同内容,版权归原翻译作者所有。显示对话框 对话框经常作为Activity的一部分来创建和显示。你通常应该从protectedDialog Activity.onCreateDialog(intid) 回调方法里创建对话框。当你使用这个回调函数时,Android系统会有效的设置这个Ac
rong_wz
·
2013-11-08 17:00
android
progress
Bar
点击两次Back退出Activity
记得以前要Back退出时候、都是给一个
AlertDialog
对话框、确定和取消,记时起:这种提示很少了!
cs_li1126
·
2013-11-07 23:00
android
onKeyDown
点击两次Back退出
提示两次Toast
创建一个
AlertDialog
对话框,必须按确定或取消按钮才能关闭对话框
Android:创建一个
AlertDialog
对话框,必须按确定或取消按钮才能关闭对话框,禁止按[返回键]或[搜索键]关闭
AlertDialog
.Builderbuilder=newBuilder(this
lindonghai
·
2013-11-07 11:00
android
AlertDialog
如何创建对话框
AlertDialog
.Builder builder = new
AlertDialog
.Builder(MainActivity.this); //2.设置标题和内容 builder.setTitle
ziyouxiaoxiong
·
2013-11-06 10:00
对话框
【Android】android的基本UI操作(2)以及小结
首先声明函数:privatevoidshowDialog() {
AlertDialog
.BuildermBuilder=newAlertDialog.Builder(this); mBuilder.setTitle
chunyang2178
·
2013-11-05 10:00
github
对话框
showDialog deprecated
显示一个dialog有两种方法(我了解到了,有的可以想我补充):1.新建一个dialog,如
AlertDialog
.Builder,接着调用这个新建的dialog的show()方法显示即可,这个很简
zhao_zepeng
·
2013-11-04 18:00
android
Pro Android学习笔记(四五):Dialog(2):DialogFragment
的UI,可以通过重写DialogFragment的两个函数当中的一个来实现,这两个函数是onCreateView()和onCreateDialog(),前者返回view,后者返回dialog,如同通过
AlertDialog
.Builder
flowingflying
·
2013-10-29 13:00
有关于android弹出框
package com.example.androiddialog1; import android.app.Activity;import android.app.
AlertDialog
;import
shoushounihao
·
2013-10-27 16:00
android
Android的
AlertDialog
详解
AlertDialog
的构造方法全部是Protected的,所以不能直接通过new一个
AlertDialog
来创建出一个
AlertDialog
。
ztp800201
·
2013-10-26 15:00
android在Service中弹出Dialog对话框,即全局性对话框
java] viewplaincopyalert.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 注:alter为
AlertDialog
亭子happy
·
2013-10-26 15:00
Android手机在开发调试时logcat不显示输出信息的解决办法
2012-02-0317:47:14| 分类:Android| 标签:|字号大中小 订阅刚开始没有查到好的方法,就用trycatch把exception打到一个
alertdialog
中,但是这样只能看个大概
yuanyuan_186
·
2013-10-25 15:00
Android
AlertDialog
去掉系统黑色背景
其实代码就这么几行,研究的时候需要花费较多时间。注意这里new的一定是Dialog不是它的子类,然后它的背景设置为透明就可以了Dialogdialog=newDialog(this); AlertCustomcustom=newAlertCustom(); dialog.setContentView(custom.getView()); dialog.getWindow().setBackgrou
Aaren_Jiang
·
2013-10-24 09:00
android
dialog
AlertDialog
去黑色背景
android弹出带图标的列表对话框
别的没什么packagecom.tenghu.menu; importandroid.os.Bundle; importandroid.app.Activity; importandroid.app.
AlertDialog
u011109042
·
2013-10-23 23:00
AlertDialog
Android之PopupWindow弹出对话框
转载自:http://blog.csdn.net/kkfdsa132/article/details/6376518# Android的对话框常用的有两种:PopupWindow和
AlertDialog
wulong710
·
2013-10-23 14:00
Android开发之
AlertDialog
和自定义
AlertDialog
Android为我们提供了很多种
AlertDialog
,当前我们也可以定制自己需要的Dialog;下面就是Android为我们提供的
AlertDialog
1、显示带取消、中立和确定按钮的对话框2、显示带列表的对话框
deng0zhaotai
·
2013-10-23 12:00
builder
AlertDialog
自定义提示框
自定义dialog思路
构建自己定义的dialog思路:首先extendsbuilder;将
alertdialog
加入其中,然后Inflater一个layout,成为一个view将此viewset成
alertdialog
的view
yangzhiloveyou
·
2013-10-22 19:00
android.view.WindowManager$BadTokenException: Unable to for an application
在弹出窗口的时候,报错,代码如下
AlertDialog
.Builderbuilder=newBuilder(getApplicationContext());解决方法:将getApplicationContext
yingxiake
·
2013-10-20 13:00
android
android常见的
alertdialog
与实际问题解决方案
AndroidAlertDialog解决点击按钮对话框不关闭的问题AndroidalertDialog中左中右三个按钮,点击按钮的时候,即使没调用dismiss方法,系统也会默认的去调用,而把这个对话框被关闭掉,但是我们的一些实际需求,就需要保留这个对话框不动,例如输入校验码,密码之类的校验问题,如果用户输入错误,而关闭后弹出对话框,就很别扭了。这里有个方案可以解决这个问题,使得即使按钮事件发生了
董武明
·
2013-10-16 18:21
android
android常见的
alertdialog
与实际问题解决方案
AndroidAlertDialog解决点击按钮对话框不关闭的问题AndroidalertDialog中左中右三个按钮,点击按钮的时候,即使没调用dismiss方法,系统也会默认的去调用,而把这个对话框被关闭掉,但是我们的一些实际需求,就需要保留这个对话框不动,例如输入校验码,密码之类的校验问题,如果用户输入错误,而关闭后弹出对话框,就很别扭了。这里有个方案可以解决这个问题,使得即使按钮事件发生了
dongwuming
·
2013-10-16 18:00
全局弹框--弹框可响应事件,后面的窗口也可获取焦点
privatevoidshowFrontDialogNavigation(StringnameString){
AlertDialog
.Builderb=newAlertDialog.Builder(getApplicationContext
luohaowang320
·
2013-10-14 16:00
PopupWindow实现弹出菜单
其实,它的本身是PopupWindow或者是
AlertDialog
对话框,在里面添加两个GridView控件,一个是菜单标题栏,一个是菜单选项。菜单选项视图的切换可以通过适配器的变换,轻松地实现。
等待流星
·
2013-10-11 10:00
PopupWindow讲解
Android的对话框有两种:PopupWindow和
AlertDialog
。
等待流星
·
2013-10-11 10:00
【Android】对话框
AlertDialog
的使用(一)
对话框的创建和使用有多种方式,在此,只使用最简单的方式,就是直接给按钮增加监听器,然后,弹出所需要的对话框。一、普通提示对话框findViewById(R.id.button1).setOnClickListener(newOnClickListener(){ @Override publicvoidonClick(Viewv){ //TODOAuto-generatedmethodstub ne
oYunTaoLianWu
·
2013-10-09 00:00
android
自定义
对话框
AlertDialog
AlertDialog
详解
对话框介绍与示例 对话框在程序中不是必备的,但是用好对话框能对我们编写的应用增色不少。采用对话框可以大大增加应用的友好性。比较常用的背景是:用户登陆、网络正在下载、下载成功或者失败的提示,还有,比如:短信来了、电池没电了等等,只要你想到的,能提高用户体验的,你都可以使用对话框。首先,请大家找到文档,在右上角的搜索框中输入Dialog,根据提示,选择app.dialog。大家可以先阅读一下英
kakaxi1o1
·
2013-10-04 22:00
android
AlertDialog
You must call removeView() on the child's parent first
YoumustcallremoveView()onthechild'sparentfirst在做
alertdialog
是的时候报了这么一个错误:java.lang.IllegalStateException
null1989
·
2013-09-30 14:00
Android中
AlertDialog
对话框禁止按[返回键]或[搜索键]
AlertDialog
.Builderbuilder=newBuilder(this);builder.create().show();这样显示出来的对话框,当用户按返回键或搜索键时,这个对话框也能关闭
svrsimon
·
2013-09-29 12:00
在
AlertDialog
对话框中显示布局文件及添加监听器+setItems
以创建文件为例一、资源里layout文件夹里的布局文件create_dialog.xml如下: 二、在代码膨胀出布局文件对象,并对布局文件里的控件添加监听器1、获取系统布局文件膨胀器 LayoutInflatermLI=(LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERV
hzw05103020
·
2013-09-26 09:00
ProgressDialog使用总结
ProgressDialog的使用ProgressDialog继承自
AlertDialog
,
AlertDialog
继承自Dialog,实现DialogInterface接口。
Carserdadi
·
2013-09-24 17:45
Android
ProgressDialog使用总结
ProgressDialog的使用 ProgressDialog继承自
AlertDialog
,
AlertDialog
继承自Dialog,实现DialogInterface接口。
Caesardadi
·
2013-09-24 17:00
android
ProgressDialog
android学习—— context 和 getApplicationContext()
在android中常常会遇到与context有关的内容 浅论一下context : 在语句
AlertDialog
.Builder builder = new
AlertDialog
.Builder(
zhouxiaoli521
·
2013-09-22 11:00
Android点击缩略图查看大图
1、第一种方法我们可以使用自定义的
AlertDialog
来实现,代码如下:ImageViewimage=(ImageView)findViewById(R.id.small_image);image.setOnC
lylzwsy
·
2013-09-17 08:00
网络
图片
缩略图
点击查看大图
取得电池电量
在main.xml中: 新建BatteryInfoBroadcastReceiver.java: packagecom.li.battery; importandroid.app.
AlertDialog
helloliyewen
·
2013-09-12 20:00
取得电池电量
android 实现由下至上弹出并位于屏幕底部的提示框
OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub
AlertDialog
u011133213
·
2013-09-12 19:00
Dialog详解
一、创建的一般步骤:1)创建构造器2)给构建器设置属性如:标题内容 按钮 设置布局3)创建dialog4)显示dialog代码如下:
AlertDialog
.Builderbuilder=newAlertDialog.Builder
caihongshijie6
·
2013-09-12 12:00
android
alertDialog
的使用
转载:http://www.oschina.net/question/54100_32486在Android开发中,我们经常会需要在Android界面上弹出一些对话框,比如询问用户或者让用户选择。这些功能我们叫它AndroidDialog对话框,在我们使用Android的过程中,我归纳了一下,AndroidDialog的类型无非也就7种,下面我分别向大家介绍这7种AndroidDialog对话框的
swust_chenpeng
·
2013-09-11 19:00
Android ListView 之 SimpleAdapter 二 (包含 item 中按钮监听)
; importjava.util.ArrayList; importjava.util.HashMap; importandroid.app.Activity; importandroid.app.
AlertDialog
he91_com
·
2013-09-11 14:00
android
ListView
tabhost (activitygroup)中子页面弹出对话框
1,对话框:
AlertDialog
.Builder builder=newAlertDialog.Builder(this.getParent());2,时间对话框: 1)先new一个OnDateSetListener
zhao123h
·
2013-09-10 01:00
android
tabhost
对话框
子页面
android奇怪的错误
ListView与SimpleAdapter的结合使用的总结
importjava.util.HashMap; importjava.util.List; importjava.util.Map; importandroid.app.Activity; importandroid.app.
AlertDialog
HelloToDays
·
2013-09-09 22:34
ListView
利用Fragment来制作对话框
packagecom.example.myfirstapp; importandroid.app.
AlertDialog
; importandroid.app.Dialog; importandroid.app.DialogFragment
cfan_yjr
·
2013-09-09 13:00
上一页
58
59
60
61
62
63
64
65
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他