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
AlertDialog
中获取自定义控件
最近写了一个自定义布局的Dialog,运行效果如下:然后我想获取到自定义布局中的EditText控件,并得到其中的字符串,但是使用send_email=(EditText)findViewById(R.id.send_email_dialog_et);并不能获取到控件对象,经测试发现send_email对象为null。。。。没办法,只好到一个技术群里问一下别人,很幸运我找到了解决方法,关键代码如下
wutongkege
·
2014-08-21 21:00
技术
字符串
null
AlertDialog
中获取自定义控件
最近写了一个自定义布局的Dialog,运行效果如下:然后我想获取到自定义布局中的EditText控件,并得到其中的字符串,但是使用send_email=(EditText)findViewById(R.id.send_email_dialog_et);并不能获取到控件对象,经测试发现send_email对象为null。。。。没办法,只好到一个技术群里问一下别人,很幸运我找到了解决方法,关键代码如下
wutongkege
·
2014-08-21 21:00
字符串
技术
layout
null
主程序
自定义
AlertDialog
AlertDialog
.Builder builder;
AlertDialog
alertDialog
; LayoutInflater
postdep
·
2014-08-21 10:00
android
AlertDialog
AlertDialog
中的EditText不能弹出软键盘的解决方法
在
AlertDialog
中使用自定义的View,如果View中有EditText,在上面点击,默认是跳不出软键盘的,不是焦点的问题。
nnmmbb
·
2014-08-20 18:00
退出应用程序
@Override publicvoidonBackPressed(){
AlertDialog
.Builderbuilder=newBuilder(this); builder.setTitle("提醒
zhangyongfeiyong
·
2014-08-19 23:00
透明背景dialog
DialogalertDialog=newDialog(this);
alertDialog
.requestWindowFeature(Window.FEATURE_NO_TITLE);
alertDialog
.setContentView
i_lovefish
·
2014-08-14 10:00
AlertDialog
点击空白处、返回按钮 行为
弹出
AlertDialog
之后,点击空白处,默认Dialog消失;点击回退键,默认消失;那么如何点击空白处,不隐藏对话框,点击Android的返回键,跳回到上一个Activity?
jrrx
·
2014-08-12 23:00
AlertDialog
点击空白处隐藏
android 对话框
AlertDialog
android对话框
AlertDialog
。
nnmmbb
·
2014-08-12 15:00
android之
AlertDialog
1.继承
AlertDialog
的样式 2.自定义标题 3.自定义内容View,包含输入框。 4.点击窗口外不取消窗口.点击返回取消窗口。
FastThinking
·
2014-08-11 14:00
Android:当焦点在EditText上时自动显示软件键盘
转自:http://ask.csdn.net/questions/208你可以在
AlertDialog
的EditTex中创建一个焦点监听,然后获得
AlertDialog
的窗口。
wyyl1
·
2014-08-10 15:00
常见对话框
1.确定取消对话框:publicvoidclick1(Viewv){ //对话框的创建器
AlertDialog
.Builderbuilder=newBuilder(this); builder.setTitle
zhangyongfeiyong
·
2014-08-08 16:00
Android中
AlertDialog
的使用小结
AlertDialog
.Builde
yukaiehome
·
2014-08-07 16:00
android
dialog
libgdx
Android 弹出框
1、Java package com.fish.helloworld; import android.app.Activity; import android.app.
AlertDialog
·
2014-08-03 18:00
android
通过Dialog Fragment管理和显示对话框
packagecom.example.androidtest; importandroid.annotation.SuppressLint; importandroid.app.
AlertDialog
howlaa
·
2014-08-03 15:00
AlertDialog
自定义样式
废话不多说了,只是做个笔记,以后忘了才可以查看下,我一般都不不去记这些方法的,知道了就好,要用的时候查下就可以了。关键性代码:/** *用户名或密码错误的弹窗 *网络状况不好的弹窗 */ publicvoidshow_login_error(Stringerr_text){ finalAlertDialogdlg=newAlertDialog.Builder(this).create(); dlg
caiwenfeng_for_23
·
2014-08-02 14:00
android
自定义
AlertDialog
AlertDialog
自定义样式
废话不多说了,只是做个笔记,以后忘了才可以查看下,我一般都不不去记这些方法的,知道了就好,要用的时候查下就可以了。关键性代码:/***用户名或密码错误的弹窗*网络状况不好的弹窗*/publicvoidshow_login_error(Stringerr_text){finalAlertDialogdlg=newAlertDialog.Builder(this).create();dlg.show(
iteye_563
·
2014-08-02 14:00
JavaFX将Node导出为图片
mapCanvas.snapshot(newSnapshotParameters(),null);try{ImageIO.write(SwingFXUtils.fromFXImage(image,null),"png",file);
AlertDialog
.showAlertDialo
ml3947
·
2014-08-01 18:06
JavaFX
JavaFX将Node导出为图片
newSnapshotParameters(),null); try{ ImageIO.write(SwingFXUtils.fromFXImage(image,null),"png",file);
AlertDialog
.showAlert
ml3947
·
2014-08-01 18:00
JavaFX
截图
android
AlertDialog
Demo
final Context context = this; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button button =
flowerwrong
·
2014-07-31 01:00
android学习之-简单对话框
sucre.android; import android.app.Activity; import android.app.
AlertDialog
sucre
·
2014-07-30 10:00
android
职场
AlertDialog
休闲
Android 检测网络是否连接
importandroid.net.NetworkInfo.State;importandroid.os.Bundle;importandroid.app.Activity;importandroid.app.
AlertDialog
u014071669
·
2014-07-24 13:00
wifi
NetWork
admob
网络连接
Android 官方推荐 : DialogFragment 创建对话框
在DialogFragment产生之前,我们创建对话框:一般采用
AlertDialog
和Dialog。注:官方不推荐直接使用Dialog创建对话框。
luohai859
·
2014-07-23 14:00
Android
AlertDialog
.Builder进入和退出动画效果设置
Android中,最常的对话框估计就是
AlertDialog
.Builder了,下面学习一下怎么给它加一些特殊动画效果。
u010134293
·
2014-07-21 14:00
动画
android
对话框
Android仿iPhone的日期时间选择器
importjava.text.SimpleDateFormat; importjava.util.Calendar; importandroid.app.Activity; importandroid.app.
AlertDialog
u010785585
·
2014-07-18 17:00
android
时间
iPhone
日期
AlertDialog
自定义关闭
如果
AlertDialog
里有输入框,那么如何根据自己的需要关闭
AlertDialog
,网上有很多是通过反射方式。这里有另外一种方法。
zwline
·
2014-07-18 11:00
阻止关闭
Android中
Alertdialog
对话框点击消失?
这个问题很纠结啊,查找了一下发现从Android4.0开始,
AlertDialog
有了变化,就是在触摸对话框边缘外部,对话框会自动消失,查了源码,找到解决办法: 研究其父类时候发现,可以设置这么一条属性
ysh06201418
·
2014-07-17 10:00
Android的对话框有两种:PopupWindow和
AlertDialog
区别
Android的对话框有两种:PopupWindow和
AlertDialog
。
的书法上的
·
2014-07-15 16:00
android开发之ProgressDialog使用总结
效果图文章出处:http://blog.csdn.net/caesardadi/article/details/11982721ProgressDialog继承自
AlertDialog
,
AlertDialog
u013310075
·
2014-07-14 16:00
android
自定义
AlertDialog
提示框
图一:图二:自定义
AlertDialog
的java类:/*************************************************************************
gao_chun
·
2014-07-14 11:00
android
自定义
AlertDialog
提示框
Android UI 之 Dialog 使用
AlertDialog
是一个可以显示标题、内容、最多三个按钮,也可以显示普通列表、单选列表、多选列表或者自定义空间的多功能Dialog。DatePickerDialog和T
thinkerMM
·
2014-07-12 22:00
android
UI
dialog
更改
AlertDialog
窗口大小的方法
AlertDialogdialog=newAlertDialog.Builder(this).create(); dialog.show(); WindowManager.LayoutParamsparams=dialog.getWindow().getAttributes(); params.width=200; params.height=200; dialog.getWindow().set
guoliang
·
2014-07-12 21:00
对话框:阻塞式PopupWindow 和非阻塞
AlertDialog
PopupWindow弹出对话框的一种,和
AlertDialog
类似,可以用来实现一个悬浮的菜单API定义:Apopupwindowthatcanbeusedtodisplayanarbitraryview.Thepopupwindowisafloatingcontainerthatappearsontopofthecurrentactivity.
AlertDialog
小熊先生kisCode
·
2014-07-11 23:22
Android进阶
对话框:阻塞式PopupWindow 和非阻塞
AlertDialog
PopupWindow弹出对话框的一种,和
AlertDialog
类似,可以用来实现一个悬浮的菜单API定义:Apopupwindowthatcanbeusedtodisplayanarbitraryview.Thepopup
LANG791534167
·
2014-07-11 23:00
android 学习(2)对话框
Android对话框:
AlertDialog
.Builder使用方法1.通过继承等方式,重写我们自己的对话框。 2.使用android提供了相应的接口DialogBuilder。
souldepth
·
2014-07-10 17:00
Android中的PopupWindow详解
From:http://www.2cto.com/kf/201205/131768.htmlAndroid的对话框有两种:PopupWindow和
AlertDialog
。
MaximusKiang
·
2014-07-06 13:00
android
Android开发
PopupWindow
PopupWindow(一)
From:http://blog.csdn.net/scyatcs/article/details/7929941理论部分一、PopupWindow和
AlertDialog
都是Android对话框的内容二
MaximusKiang
·
2014-07-06 12:00
android
Android开发
PopupWindow
PopupWindow(一)
From:http://blog.csdn.net/scyatcs/article/details/7929941理论部分一、PopupWindow和
AlertDialog
都是Android对话框的内容二
MaximusKiang
·
2014-07-05 23:00
android
Android开发
PopupWindow
android开发-使用Dialog
AlertDialog
Dialog对话框,大家肯定都不陌生。我们使用Windows操作系统、IE浏览器等经常会弹出对话框,这些对话框大部分都是模态的同步对话框。所谓的模态是指:当前弹出的Dialog挡住了它的父窗口,在Dialog消失前,父窗口无法获取焦点,浏览器中的alert对话框就是这样的;所谓的同步是指:程序执行到弹出Dialog后就停在当前行代码,等到Dialog处理完后程序才接着往下执行。在Android中D
a8082649
·
2014-07-03 15:00
Android详细的对话框
AlertDialog
.Builder使用方法
我们在平时做开发的时候,免不了会用到各种各样的对话框,相信有过其他平台开发经验的朋友都会知道,大部分的平台都只提供了几个最简单的实现,如果我们想实现自己特定需求的对话框,大家可能首先会想到,通过继承等方式,重写我们自己的对话框。当然,这也是不失为一个不错的解决方式,但是一般的情况却是这样,我们重写的对话框,也许只在一个特定的地方会用到,为了这一次的使用,而去创建一个新类,往往有点杀鸡用牛刀的感觉,
microsoftwin32
·
2014-07-03 13:00
自定义android 4.0以上的对话框风格
做个笔记,这里是Dialog的风格,如果是用
AlertDialog
创建的,不能直接用。
maosidiaoxian
·
2014-07-03 11:00
手机卫士知识点之------手机防盗功能1
importcn.itcast.mobilesafe.R; importcn.itcast.mobilesafe.adapter.MainUIAdapter; importandroid.app.Activity; importandroid.app.
AlertDialog
jonemill
·
2014-07-02 21:00
Android使用自定义
AlertDialog
(退出提示框)
有时候我们需要在游戏或应用中用一些符合我们样式的提示框(
AlertDialog
)以下是我在开发一个小游戏中总结出来的.希望对大家有用.先上效果图:下面是用到的背景图或按钮的图片经过查找资料和参考了一下例子后才知道
ycb1689
·
2014-07-02 10:00
JAVA构建器Builder模式
/** *构建器Builder模式 *Android中的
AlertDialog
的构建器模式 */ publicclassLunch{ privateStringcake; privateStringmeat
earbao
·
2014-07-01 16:00
dialog
packagecn.itcast.dialog; importandroid.app.Activity; importandroid.app.
AlertDialog
; importandroid.app.
AlertDialog
.Builder
jonemill
·
2014-06-30 23:00
Android开发之自定义Dialog二次打开报错问题解决
之前自定义了一个
AlertDialog
对话框,第一次点击时正常,但第二次调用时会出现错误:java.lang.IllegalStateException:Thespecifiedchildalreadyhasaparent.YoumustcallremoveView
u013900875
·
2014-06-27 09:00
android
局部变量
自定义
dialog
全局变量
实现:TextView自由复制功能
packagecom.example.copyfree; importandroid.app.ActionBar; importandroid.app.Activity; importandroid.app.
AlertDialog
huangyabin001
·
2014-06-26 19:00
android 返回 弹出对话框 确认退出
[java] view plain copy privatevoiddialog(){
AlertDialog
.Builderbuilder=newBuilder(PPTSoftwareActivity.this
qilixiang012
·
2014-06-26 15:00
android
自定义
alertDialog
最近做一个android应用,发现android自带的
alertDialog
太丑了,想进行改造,开始想到样式,经过一番尝试,失败。。然后想到皮肤,也不行。
zwcan241
·
2014-06-24 10:00
android
关于Android4.X的
Alertdialog
对话框
最近在做Android4.0的开发,发现
AlertDialog
相比较以前有了较大变化,就是在触摸对话框边缘外部,对话框消失 于是研究其父类发现,可以设置这么一条属性,当然必须先
AlertDialog
.Builder.create
·
2014-06-23 21:00
AlertDialog
自定义Spinner---利用TextView以及Dialog组合
packagecom.example.myspinner_bytextview;importandroid.os.Bundle;importandroid.app.Activity;importandroid.app.
AlertDialog
鹭岛猥琐男
·
2014-06-21 13:44
Spinner
textview
dialog
上一页
53
54
55
56
57
58
59
60
下一页
按字母分类:
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
其他