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中判断网络连接的工具类
中开发具有网络交互的应用时,必须用到的工具类NetUtilpackagecom.example.test; importandroid.app.Activity; importandroid.app.
AlertDialog
caijunjun1006
·
2013-08-01 09:00
android
工具类
NetUtil
context和getApplicationContext()介绍
在android中常常会遇到与context有关的内容,大多都是作为参数在传递,但是它的作用究竟是什么呢 先说它的用法,举个例子 在语句
AlertDialog
.Builder builder =
ydbc
·
2013-07-31 06:00
context和getApplicationContext()介绍
在android中常常会遇到与context有关的内容,大多都是作为参数在传递,但是它的作用究竟是什么呢先说它的用法,举个例子在语句
AlertDialog
.Builderbuilder=newAlertDialog.Builder
jason0539
·
2013-07-31 06:00
context和getApplicationContext()介绍
在android中常常会遇到与context有关的内容,大多都是作为参数在传递,但是它的作用究竟是什么呢 先说它的用法,举个例子 在语句
AlertDialog
.Builder builder =
aspnetwinform
·
2013-07-31 06:00
android 开发中判断网络是否连接的代码
下面是一个判断是否连接网络的嗲吗片段:packagecn.com.karl.util; importcom.kubu.main.R; importandroid.app.Activity; importandroid.app.
AlertDialog
S04103037
·
2013-07-31 00:00
android
网络
【Android】常用弹出框
newAlertDialog.Builder(self).setTitle("标题").setMessage("简单消息框").setPositiveButton("确定",null).show();效果如下:上面的代码中我们新建了一个
AlertDialog
yeqi3000
·
2013-07-30 22:00
为什么用Toast,而不是
AlertDialog
之后做android开发,意外的发现android有
AlertDialog
以及Toast,一直在想为什么有了
AlertDialog
还需要Toast。为什么Android会出现Toast。
waylife
·
2013-07-30 09:00
android完全退出程序
AlertDialog
.Builder builder = new Builder(this); builder.setMessage("确定要退出吗?
渐渐远行的背景
·
2013-07-27 22:00
android
自定义ProgressDialog
AlertDialog
alertDialog
= new
AlertDialog
.Builder(this).setMessage( 5. &q
dengyin2000
·
2013-07-27 13:00
ProgressDialog
自定义ProgressDialog
AlertDialog
alertDialog
= new
AlertDialog
.Builder(this).setMessage( 5. &q
dengyin2000
·
2013-07-27 13:00
ProgressDialog
android
AlertDialog
更改显示位置
AlertDialogdlg=newAlertDialog.Builder(this).create();//-------------------------------------------------------------------Windoww=dlg.getWindow();WindowManager.LayoutParamslp=w.getAttributes();lp.x=10
findsafety
·
2013-07-25 15:00
AlertDialog
更改标题颜色,字体等
更改
AlertDialog
标题的方法google目前没有提供,只能通过其他办法一种办法是:首先在源代码中找到有个叫AlertController的类,这个类就是
AlertDialog
的实现类,是没有对外公开的
findsafety
·
2013-07-25 14:00
Android系统原理与源码分析(1):利用Java反射技术阻止通过按钮关闭对话框
众所周知,
AlertDialog
类用于显示对话框。关于
AlertDialog
的基本用法在这里就不详细介绍了,网上有很多,读者可以自己搜索。
LiSteven
·
2013-07-25 11:00
Android应用开发——退出确认对话框 后退键捕捉
//这是退出是确认对话框出现的函数privateDialogExitDialog(Contextcontext){
AlertDialog
.Builderbuilder=newAlertDialog.Builder
kkm0cn
·
2013-07-24 11:00
对话框
android应用
退出键
AlertDialog
与 PopupWindow的 区别
而问题就出现在这里,也是我觉得的
AlertDialog
与PopupWindow很明显的一个区别。
luohaowang320
·
2013-07-23 12:00
android 登录功能简介 获取EditText值进行比较
packagecom.example.qq; importandroid.os.Bundle; importandroid.app.Activity; importandroid.app.
AlertDialog
a191030148
·
2013-07-21 09:00
让
AlertDialog
在点击按钮后不消失、不关闭
在网上搜索了一下,发现有两种做法:第一:使用反射:在你的setPositiveButton中添加://用于不关闭对话框 try { Fieldfield=dialog.getClass().getSuperclass().getDeclaredField("mShowing"); field.setAccessible(true); field.set(dialog,false); }ca
ab6326795
·
2013-07-20 11:00
Android详细的对话框
AlertDialog
.Builder使用方法
我们在平时做开发的时候,免不了会用到各种各样的对话框,相信有过其他平台开发经验的朋友都会知道,大部分的平台都只提供了几个最简单的实现,如果我们想实现自己特定需求的对话框,大家可能首先会想到,通过继承等方式,重写我们自己的对话框。当然,这也是不失为一个不错的解决方式,但是一般的情况却是这样,我们重写的对话框,也许只在一个特定的地方会用到,为了这一次的使用,而去创建一个新类,往往有点杀鸡用牛刀的感觉,
RationalGo
·
2013-07-19 15:00
android中模拟对话框按钮的点击
packagecom.qefee.testcanclealertdialog; importandroid.os.Bundle; importandroid.app.Activity; importandroid.app.
AlertDialog
aotian16
·
2013-07-18 15:00
android 弹出带输入框的对话框
privatevoidinputTitleDialog(){ finalEditTextinputServer=newEditText(this); inputServer.setFocusable(true);
AlertDialog
.Builderbuilder
·
2013-07-17 21:00
android
android 弹出带输入框的对话框
privatevoidinputTitleDialog(){finalEditTextinputServer=newEditText(this);inputServer.setFocusable(true);
AlertDialog
.Builderbuilder
李先森丶
·
2013-07-17 08:09
android
自定义透明样式Dialog以及对多输入框进行是否为空的判断
自定义自己的Dialog类,通过接口实现dialog上的控件的点击事件packagesee.ilifeactivity;importilife.see.R;importandroid.app.
AlertDialog
wangwenya
·
2013-07-15 10:00
自定义透明Dialog
java 列表对话框
[代码][Java]代码01publicvoidshowListDialog(){02
AlertDialog
.Builderbuilder=newAlertDialog.Builder(this);03builder.setItems
chenwali
·
2013-07-14 00:36
java
列表对话框
java学习部分
webview与js交互
效果图 点击“调用alert”按钮,在Android中捕获JS alert,并用Android组件(
AlertDialog
)
yzt891025
·
2013-07-12 16:26
android
android学习资料收集
一、教你创建一个android应用 包含:Activity、Intent、Bundle、
AlertDialog
、Menu、EditText、Toast、SharedPreferences
no_bao
·
2013-07-11 14:00
Android学习
手势识别(GestureOverlayView)
org.hjw.addgestest; import android.os.Bundle; import android.app.Activity; import android.app.
AlertDialog
·
2013-07-10 18:00
overlay
Android 自定义对话框
今天分享下自己模仿淘宝退出时的一个自定义对话框,这个效果在很多地方都有实现,今天就模仿一个,我们来看看效果:思路:首先ConfirmDialog类继承
AlertDialog
:这样才会有显示的效果,第二个就是让内容完全覆盖掉
yhqbsand
·
2013-07-09 11:00
android
android PopupWindow简单例子
在android中弹出框有两种方式:
AlertDialog
和PopupWindow,它们的不同点在于: 1、
AlertDialog
的位置固定,而PopupWindow的位置可以随意; 2、
贺路的路
·
2013-07-08 21:00
android
PopupWindow
非UI线程中显示
Alertdialog
控件或Toast
privatevoidtoast(Stringcontent){ //TODOAuto-generatedmethodstub Looper.prepare(); Toast.makeText(Activity_Register.this,content,Toast.LENGTH_LONG).show(); Looper.loop(); }在UI主线程之外是无法对UI组件进行控制的。因此你最好在线
djun100
·
2013-07-08 16:00
对选项菜单的应用,有包含子菜单,和对话框的弹出
packagecom.android;importandroid.app.Activity;importandroid.app.
AlertDialog
;importandroid.os.Bundle;importandroid.view.Menu
runfeel
·
2013-07-08 12:00
对话框
AlertDialog
对话框的建立方法
由于
AlertDialog
类的构造方法被声明成protected方法,因此,不能直接使用new关键字来创建
AlertDialog
类的对象实例,只能用
AlertDialog
。
wangwenxc
·
2013-07-08 11:00
java
android
AlertDialog
Android笔记 - UI Dialog
1)
AlertDialog
提示框:可含最多3个按钮;支持多选、单选按钮;支持UI交互View等。 2) ProgressDialog:继承于Alert
mlj1668956679
·
2013-07-04 09:00
自定义
AlertDialog
下面示例一个自定义
AlertDialog
~~~ 先上一段代码:Java代码 /** * 自定义
AlertDialog
* * @author mys at 2011
fengyee_zju
·
2013-07-02 21:00
android 对话框弹出位置和透明度的设置具体实现方法
最容易的就是直接通过
AlertDialog
类的getWindow方法来获得Window对象。
·
2013-07-01 11:45
如何让
AlertDialog
在点击确定或者取消时不消失
http://hi.baidu.com/doyee/item/5e27c1155df589dcbf904246 new
AlertDialog
.Builder(activity)
pyzheng
·
2013-06-28 09:00
AlertDialog
如何让
AlertDialog
在点击确定或者取消时不消失
http://hi.baidu.com/doyee/item/5e27c1155df589dcbf904246 new
AlertDialog
.Builder(activity)
pyzheng
·
2013-06-28 09:00
AlertDialog
使Android应用的
AlertDialog
对话框中的按钮显示为ImageButton图标,并设置相应
其次在你需要调用弹出框的地方添加如下代码:finalAlertDialogalertDialog=newAlertDialog.Builder(TalkerActivity.this).create();
alertDialog
.show
willproud
·
2013-06-27 21:00
android.view.WindowManager$BadTokenException: Unable to add window -- token null
引起错误的代码如下: new
AlertDialog
.Builder(AppsInforAdapter.this.mContext) //出错的位置 .setTitle
北极光之吻
·
2013-06-26 22:00
android
Android链式方法显示Dialog
阅读更多发现Android中的
AlertDialog
原来可以使用方法链式来创建和显示newAlertDialog.Builder(this).setTitle("提示").setMessage("提示消息
berdy
·
2013-06-26 17:00
android
Android链式方法显示Dialog
发现Android中的
AlertDialog
原来可以使用方法链式来创建和显示 new
AlertDialog
.Builder(this).setTitle("提示").
berdy
·
2013-06-26 17:00
android
android Fragments详解【2】
文件: 主界面代码(己做注释): package com.xuzhi.fragment;import android.app.Activity;import android.app.
AlertDialog
mldxs
·
2013-06-26 15:00
带输入框(EditText)的
AlertDialog
-java-Android
//点击输城市按钮 privateButton.OnClickListenerchoose_city_Listener=newButton.OnClickListener() { @Override publicvoidonClick(Viewarg0) { LayoutInflaterfactory=LayoutInflater.from(TalkerActivity.this);//提示框 f
willproud
·
2013-06-26 12:00
Android组件之CheckBox
importjava.util.ArrayList;importjava.util.List;importandroid.os.Bundle;importandroid.app.Activity;importandroid.app.
AlertDialog
zhangguoliang521
·
2013-06-25 18:00
几种对话框和菜单
package com.example.ADemo4; import android.app.Activity; import android.app.
AlertDialog
; import
pyzheng
·
2013-06-25 08:00
对话框
Android 系统点击屏幕Dialog会消失问题处理
AlertDialog
出现后点击屏幕其他的地方dialog会消失避免出现这个问题需要添加这句 builder.setCancelable(false);
windownew11
·
2013-06-24 18:00
Android_Android 切换卡(TabWidget)
layout下main.xml: 源代码:packagecom.yarin.android.TestOnWidget; importandroid.app.
AlertDialog
;
jiguanghoverli
·
2013-06-23 20:00
Android中的对话框的使用技巧
我们使用AlerDialog 创建对话框
AlertDialog
.Builderbuilder=newAlertDialog.Buil
zhengguogaun
·
2013-06-19 15:00
android
弹出对话框
解析android中的帮助、about、关于作者、HELP等提示页面
类似这样的页面:这样的页面,我们可以通过
AlertDialog
对话框来设计。
·
2013-06-19 11:53
Android禁止按键关闭
AlertDialog
在setPositiveButton(setNegativeButton)中添加://用于不关闭对话框try{ Fieldfield=dialog.getClass().getSuperclass().getDeclaredField("mShowing"); field.setAccessible(true); field.set(dialog,false);}catch(Exceptione)
mrlixirong
·
2013-06-19 07:00
android
对话框
AlertDialog
自定义 Android 对话框 (
AlertDialog
) 的样式
http://www.open-open.com/lib/view/open1325635738437.html
yorling
·
2013-06-18 17:00
代码片段
上一页
60
61
62
63
64
65
66
67
下一页
按字母分类:
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
其他