_loginBtn = [[UIButton alloc]initWithFrame:CGRectMake(iconX, CGRectGetMaxY(passwordBGView.frame)+25, 280, 35)];[_loginBtn setTitle:@"进入游戏\nSTART GAME"...
分类:
其他好文 时间:
2015-04-05 20:27:58
阅读次数:
223
getActionBar().setTitle(); Java.lang.NullPoint异常解决方案,是由于低版本不支持直接获取的缘故,修改方案:try changing your theme to thisand not the AppCompat Version 另外一种情况,如果是低版本....
分类:
编程语言 时间:
2015-04-05 01:05:44
阅读次数:
366
常用的方法:setTitle :为对话框设置标题setIcon :为对话框设置图标setMessage:为对话框设置内容setView : 给对话框设置自定义样式setItems :设置对话框要显示的一个list,一般用于显示几个命令时setMultiChoiceItems :用来设置对话框显示一系...
分类:
其他好文 时间:
2015-04-02 20:23:54
阅读次数:
128
一般情况下 button添加背景图
UIButton
*button = [[UIButton
alloc] initWithFrame:CGRectMake(80,
130,
160,
44)];
[button
setTitle:@”Test Button” forState:UIControlStateNormal];//
Image with withou...
分类:
其他好文 时间:
2015-03-28 13:02:08
阅读次数:
270
/***确定、取消*@paramview*/publicvoidclick1(Viewview){AlertDialog.Builderbuilder=newBuilder(DialogTest.this);builder.setIcon(R.drawable.ic_launcher);builder.setTitle("提示!");builder.setMessage("托尔斯泰");builder.setPositiveButton("确定",newOnClickListene..
分类:
移动开发 时间:
2015-03-14 20:10:03
阅读次数:
229
今天在使用Android弹出对话框的时候,报了一个unable to add window错误,我的代码如下new AlertDialog.Builder(getApplicationContext()).setTitle("提示").setMessage("你确定要删除么?") .setPo...
分类:
移动开发 时间:
2015-03-13 12:29:37
阅读次数:
160
android 文件下载进度条:ProgressDialog progress = new ProgressDialog(context);progress.setTitle(“文件下载”);progress.setMessage("loading...");progress.setProgress...
分类:
移动开发 时间:
2015-02-27 14:58:17
阅读次数:
244
ProgressDialog progressDialog=new ProgressDialog(Login.this);progressDialog.setTitle("数据加载中");progressDialog.setMessage("Loading...");progressDialog.s...
分类:
移动开发 时间:
2015-02-26 16:30:18
阅读次数:
200
Android的标准对话框最多可以有几个按钮?显示对话框按钮的方法是什么?3个。newAlertDialog.Builder(this).setTitle("我的对话框").setPositiveButton("关闭",
newDialogInterface.onClickListener(){
publicvoidonClick(DialogInterfacedialog,intwhichButton){
//TODO
}
})...
分类:
移动开发 时间:
2015-02-11 02:06:44
阅读次数:
231
funcstopPlayMusic(){
if(self.isStop==true){
self.player.pause()
btn.setTitle("播放",forState:UIControlState.Normal)
//varpaused=player.currentTime
self.songImageView.layer.speed=0.0
}else{
self.player.play()
btn.setTitle("暂停",forState:UIControlState.Norm..
分类:
其他好文 时间:
2015-02-05 11:38:47
阅读次数:
242