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
中有一个文本框,弹出dialog同时自动弹出键盘,编辑后点击完成直接关闭。
huiguixian
·
2014-12-23 15:00
Dialog去除黑色边框
自定义Dialog,创建子视图View, privatevoidshowSelectDateDialog(){
AlertDialog
.Builderbuilder=newBuilder(AddCapsuleActivity.this
wlytctw
·
2014-12-23 09:00
android开发中如何使用
alertDialog
从listView中删除数据?
我现在使用listView展示了很多的配置信息,我现在想在点击其中一条的时候填出
alertDialog
,点击确认后就删除该条数据,( ArrayAdapter ,ArrayList,listView
aijuans
·
2014-12-22 13:00
android
Android学习笔记(十) 主题样式的设置
对话框的类为android.app.Dialog,通过android.app.
AlertDialog
.Builder类来建立,在建立的过程可以进行多项设置:可以设置标题,图标,提示信息,最多三个按钮,单选项
qq_24451605
·
2014-12-19 16:00
java
android
样式
布局
对话框
Android监听器重名时,要写成带包的全名
监听器重名按钮的监听OnClickListenerAlertDialog.Builderbuilder的监听也是OnClickListener两个会冲突,所以
AlertDialog
.Builderbuilder
zhaihaohao1
·
2014-12-19 10:00
[Android]
AlertDialog
获取网上天气并显示各城市天气
最近帮同学做android百度地图,其中涉及到定位城市天气功能.才知道自己技术非常的一般,还有很多东西需要学习,同时需要回归到我研究生的方向——数据挖掘.同时又见识到了一位叫柳峰的大神,推荐大家去看看他的文章,好像他还是贵州的老乡.博文地址:http://blog.csdn.net/lyq8479/言归正传,我主要通过两种方法实现:1.第一种方法是通过调用中国天气网信息实现的,它的思想是通过查询静
Eastmount
·
2014-12-18 21:07
Android
Android实例开发与学习
[Android]
AlertDialog
获取网上天气并显示各城市天气
最近帮同学做android百度地图,其中涉及到定位城市天气功能.才知道自己技术非常的一般,还有很多东西需要学习,同时需要回归到我研究生的方向——数据挖掘.同时又见识到了一位叫柳峰的大神,推荐大家去看看他的文章,好像他还是贵州的老乡.博文地址:http://blog.csdn.net/lyq8479/ 言归正传,我主要通过两种方法实现: 1.第一种方法是通过调用中国天气网信息实现的,它的思想
Eastmount
·
2014-12-18 21:00
android
AlertDialog
新浪API
中国天气网
显示城市天气
Andriod开发教程 andriod对话框
自定义对话框布局:custom_dialog.xml JAVA类:packagecom.sxt.day05_09;importandroid.app.Activity;importandroid.app.
AlertDialog
husky
·
2014-12-18 11:00
Andriod开发
Android表单获取值的三种方式
act_register.xmlact_usercenter.xmlRegisterActivity.javapackagecom.example.register;importandroid.app.Activity;importandroid.app.
AlertDialog
chaoyong918
·
2014-12-17 00:10
学习笔记
Android源码解析之Dialog
出处—http://blog.csdn.net/lilu_leo/article/details/8220020在学习设计模式建造者模式时,发现
AlertDialog
和它的内部类Builder就是比较典型的建造者模式
丑才
·
2014-12-14 11:05
Android
Develop
Android:自定义DialogFragment的内容和按钮
一个
AlertDialog
示例了如何自定义弹窗的正负按钮——重写onCreateDialog方法。好的,那么问题来了在实际应用中经常是需要既自定义窗口内容、又需要自定义按钮的
barryhappy
·
2014-12-13 22:35
Android
我的Android笔记
Android:自定义DialogFragment的内容和按钮
一个
AlertDialog
示例了如何自定义弹窗的正负按钮——重写onCreateDialog方法。好的,那么问题来了在实际应用中经常是需要既自定义窗口内容、又需要自定义按钮的
barryhappy
·
2014-12-13 22:00
android
dialog
DialogFragment
解决dialog在横竖屏切换时消失
以
AlertDialog
为例 一、将
AlertDialog
视图封装在dialogfragment(fragmentdeAlertDialog子类)实例中 packagecom.example.t
温华平
·
2014-12-10 09:10
dialog
横竖屏切换
android学习笔记 对话框合集
package com.zhangbz.dialog; import android.app.Activity; import android.app.
AlertDialog
; import
·
2014-12-09 23:00
Android学习
android 情景模式来电铃声分析(二)
http://blog.csdn.net/jkkjklmn/article/details/6959686DefaultRingtonePreference单击后出现的是一个
AlertDialog
,但是在
zolaZhang
·
2014-12-08 11:23
Android
MediaPad 10FHD 为何不能够室内WiFi定位
importandroid.app.
AlertDialog
;importandroid.app.Service;importandroid.content.DialogInterface;importandroid.content.DialogInterface.OnClickListener
cug_giser
·
2014-12-08 10:00
室内WiFi定位
andriod之对话框--标准对话框、列表对话框、自定义对话框
自定义对话框布局:custom_dialog.xml java类:packagecom.sxt.day05_09;importandroid.app.Activity;importandroid.app.
AlertDialog
我的梦想fly
·
2014-12-06 19:00
PopupWindow的代码实现,以及和
AlertDialog
的区别
PopupWindow和
AlertDialog
本质区别为:
AlertDialog
是非阻塞式对话框:
AlertDialog
弹出时,后台还可以做事情;而PopupWindow是阻塞式对话框:PopupWindow
zjchaoking
·
2014-12-05 21:04
程序
private
对话框
Android之使用
AlertDialog
.Builder类创建带列表的对话框和带自己所布局视图的对话框
1.首先,新建一个安卓项目,项目名称为DialogTest1,首先,进行界面布局,打开布局文件res下的layout文件夹下的activity_main.xml文件,附上activity_main的代码: 2.我先把所要用到的字符串资源文件strings.xml文件的代码附上,这个文件放在res下的values文件夹下: DialogTest1 Helloworld! Setting
u012561176
·
2014-12-05 20:00
android
安卓
对话框
Android之使用
AlertDialog
类和
AlertDialog
.Builder类创建带取消,确定,中立的对话框
1.
AlertDialog
类的功能特别强大,不仅可以生成带有按钮的提示对话框,还可以生成带列表的列表对话框,在使用
AlertDialog
类生成对话框时,只能生成带按钮的提示对话框,如果要生成带列表的提示对话框的话
u012561176
·
2014-12-05 19:00
android
安卓
对话框
Android入门笔记 - 界面开发 - ProgressDialog
ProgressDialog就是一个对话框,然后里面有一个Progress,ProgressDilaog来自于
AlertDialog
,为了方便开发,android自己将Progress设计进去了。
u013647382
·
2014-12-04 13:00
android
progress
ProgressDialog
12月3日
对话框privatevoidDialog2(){
AlertDialog
.Builderd=newAlertDialog.Builder(MainActivity.this); Viewv=View.inflate
nests
·
2014-12-03 22:47
游戏
null
private
对话框
实现一个带按钮和事件机制的对话框。
注意
AlertDialog
.Builder dialog= new
AlertDialog
.Builder(MainActivity.this)这里的参数不能写getApplicationContext
zjchaoking
·
2014-12-03 21:34
事件机制
对话框
带按钮
android之修改系统自带ProgressDialog样式
继承自父类
AlertDialog
的style.
AlertDialog
的源码staticintresolveDialogTheme(Contextcontext,intresid){if(resid==THEME_TRADITIONAL
allenlee
·
2014-12-01 19:18
android
android之修改系统自带ProgressDialog样式
继承自父类
AlertDialog
的style.
AlertDialog
的源码staticintresolveDialogTheme(Contextcontext,intresid){ if(resid==
FastThinking
·
2014-12-01 19:00
andriod之对话框--标准对话框、列表对话框、自定义对话框
自定义对话框布局:custom_dialog.xmljava类:packagecom.sxt.day05_09;importandroid.app.Activity;importandroid.app.
AlertDialog
qa962839575
·
2014-11-30 23:00
andriod
关于
AlertDialog
的使用
AlertDialog
继承与Dialog类,它只提供了protected类型的构造函数,所以不能直接创建它的对象,需要通过它的内部类Builder来获取它的实例对象。
sjz4860402
·
2014-11-29 17:00
Dialog外部点击事件
dialog.setCancelable(true)//关闭 dialog.setCancelable(false)//不关闭
AlertDialog
.Builder dialog = new
AlertDialog
.Builder
671076656
·
2014-11-28 10:17
method
资料
false
对话框
Android中退出多个Activity的两个经典方法
,然后逐一干掉importjava.util.LinkedList;importjava.util.List;importandroid.app.Activity;importandroid.app.
AlertDialog
u014120638
·
2014-11-27 18:00
Camer的用法:相册+相机
packagecom.example.camera;importjava.io.File;importandroid.support.v7.app.ActionBarActivity;importandroid.app.
AlertDialog
dslnf
·
2014-11-27 17:34
原创
Android调用手机相机和相册拿到图片保存上传
/** *拍照 */ privatevoidtakePicture(){
AlertDialog
.Builderbuilder=newAlertDialog.Builder(getActivity
zhaihaohao1
·
2014-11-27 11:00
Android:实现点击
AlertDialog
上按钮时不关闭对话框
使用
AlertDialog
.Builder创建对话框时,可以使用builder.setNegativeButton和builder.setPositiveButton两个方法设置取
books1958
·
2014-11-25 10:00
Android开发
对话框
退出应用的2种方式
Override publicbooleanonKeyDown(intkeyCode,KeyEventevent){ //退出方法一 if(keyCode==KeyEvent.KEYCODE_BACK){
AlertDialog
.Builderd
yaokangjun
·
2014-11-24 22:00
android
退出应用
android 对话框总结
1、
AlertDialog
对话框
AlertDialog
.Builderbuilder=newBuilder(HomeActivity.this); builder.setTitle("提示"); builder.setMessage
u014600432
·
2014-11-20 10:00
android
对话框
【Android】Android中
AlertDialog
对话框的使用实例
packagecom.ceac.deng; importandroid.R.string; importandroid.support.v7.app.ActionBarActivity; importandroid.app.
AlertDialog
dengjin20104042056
·
2014-11-19 14:00
android
对话框
AlertDialog
Android基础
安卓对话框
Android设置
AlertDialog
点击按钮对话框不关闭
(转自:http://blog.csdn.net/winson_jason/article/details/8485524) 当我们在用到Android
alertDialog
创建对话框 的时候,我们会遇到一个问题就是
·
2014-11-19 14:00
AlertDialog
自定义
AlertDialog
的实现以及添加属性设置背景
自定义
AlertDialog
需要自己写的xml布局文件,
king866
·
2014-11-18 08:00
安卓
自定义
对话框
AlertDialog
背景模糊
ProgressDialog使用总结
文章来源:http://blog.csdn.net/caesardadi/article/details/11982721ProgressDialog的使用 ProgressDialog继承自
AlertDialog
libaineu2004
·
2014-11-15 12:00
android
ProgressDialog
[Android UI] Service里面启动Activity和
Alertdialog
启动Activity源码:(记得要加上Intent.FLAG_ACTIVITY_NEW_TASK) Intent intent = new Intent(); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setClass(getApplicationContext(),FileBrowserActivity.class);
·
2014-11-14 16:00
AlertDialog
Android使用自定义
AlertDialog
(退出提示框)
有时候我们需要在游戏或应用中用一些符合我们样式的提示框(
AlertDialog
)以下是我在开发一个小游戏中总结出来的.希望对大家有用.先上效果图:下面是用到的背景图或按钮的图片经过查找资料和参考了一下例子后才知道
chenguang79
·
2014-11-13 14:00
android 自学笔记
Button3.EditText 4.ImageView 5.ProgressBar 6.AlertDialogAlertDialog.Builder dialog = new
AlertDialog
.Builder
13764987389
·
2014-11-10 22:12
android
控件
安卓打开文件浏览器,选择文件后得到返回路径
若文件不存在就弹出对话框是否选择文件,选择文件后返回文件路径,给Button注册监听:publicvoidonClick(Viewarg0){if(mFilePath.equals("没有找到相关文件")){
AlertDialog
.B
smilegc
·
2014-11-09 17:03
文件管理器
返回文件路径
使用PopoPWindow当做
AlertDialog
,控制Dialog的背景大小
一开始在项目中用到弹出的
AlertDialog
,发现需求中的
AlertDialog
的背景透明且是左边不显示,右边显示出来。自己想这用Dialog可以实现吧!但是尝试了很久没有实现出来。
jjr520
·
2014-11-07 20:00
Anroid 异常:is not valid; is your activity running?
一般在创建
alertdialog
.builder是很容易见到。对于这个错误还没有根
dai_zhenliang
·
2014-11-07 17:00
Android Dialog对话框样式设定-最简单,万能有效方法
但是设计的对话框与整体风格不一样,是黑底白字,在网上查找好多的方法,最后总结一下有ContextThemeWrapper构造方法来设定最简单,而且自己不用重写Dialog类的方法,使用方法如下:在定义对话话框使用如下的设定:
AlertDialog
.Builderbuilder
yqj234
·
2014-11-05 13:00
Android 中文 API ——对话框
AlertDialog
.Builder
刚开始接触android的时候,我在做一个自定义对话框的时候,也是通过继承的方式来实现,后来随着对文档了解的深入,发现了android起始已经提供了相应的接口DialogBuilder,下面我就吧相关的内容在这里分享一下,也能让更多的初学者少走弯路。首先是一个最简单的应用,就是弹出一个消息框,在android中可以这样实现newAlertDialog.Builder(self) .setTi
fjxichao
·
2014-11-01 15:00
Android 让
AlertDialog
在点击确定、取消时不消失
AlertDialog
类用于显示对话框。关于
AlertDialog
的基本用法在这里就不详细介绍了,网上有很多,读者可以自己搜索。
davidforit
·
2014-10-31 17:00
android
AlertDialog
dismiss()
android 对话弹出框(Dialog
AlertDialog
PopupWindow)
一直认为动手是学习的最好的方法。。。本篇文章主要讲述DialogAlertDailogPopupWindow一:Dialog1:直接弹出框先看布局文件: dialog主体部分:privatevoiddialog(){ finalDialogdialog=newDialog(this); //设置Dialog没有标题,这个一定要在设置内容之前定义 dialog.req
MMjiajia132
·
2014-10-31 11:00
分别用PopupWindow和
AlertDialog
实现对话框实例
实现效果是:点击主界面的按钮,调用showDialog方法,显示的是一个登陆对话框,对话框布局在R.layout.login中。首先是使用PopupWindow:publicclassMainActivityextendsActivity{ privateAlertDialogmDialog; privateEditTexteditText,passwordText; privateInputMe
fofu33
·
2014-10-30 17:00
实例
对话框
PopupWindow
AlertDialog
AlertDialog
应用方法
【那我们先了解什么是
AlertDialog
?什么是
AlertDialog
.Builder?且两者有什么区别?
fofu33
·
2014-10-30 16:00
AlertDialog应用方法
上一页
51
52
53
54
55
56
57
58
下一页
按字母分类:
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
其他