码迷,mamicode.com
首页 >  
搜索关键字:settitle    ( 175个结果
设置UIButton文字大小颜色不同
_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异常解决方案
getActionBar().setTitle(); Java.lang.NullPoint异常解决方案,是由于低版本不支持直接获取的缘故,修改方案:try changing your theme to thisand not the AppCompat Version 另外一种情况,如果是低版本....
分类:编程语言   时间:2015-04-05 01:05:44    阅读次数:366
使用AlertDialog.Builder类创建对话框
常用的方法:setTitle :为对话框设置标题setIcon :为对话框设置图标setMessage:为对话框设置内容setView : 给对话框设置自定义样式setItems :设置对话框要显示的一个list,一般用于显示几个命令时setMultiChoiceItems :用来设置对话框显示一系...
分类:其他好文   时间:2015-04-02 20:23:54    阅读次数:128
UIButton背景图片调整大小
一般情况下 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
android 常用对话框
/***确定、取消*@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错误
今天在使用Android弹出对话框的时候,报了一个unable to add window错误,我的代码如下new AlertDialog.Builder(getApplicationContext()).setTitle("提示").setMessage("你确定要删除么?") .setPo...
分类:移动开发   时间:2015-03-13 12:29:37    阅读次数:160
android 文件下载及进度条显示
android 文件下载进度条:ProgressDialog progress = new ProgressDialog(context);progress.setTitle(“文件下载”);progress.setMessage("loading...");progress.setProgress...
分类:移动开发   时间:2015-02-27 14:58:17    阅读次数:244
Android显示加载对话框
ProgressDialog progressDialog=new ProgressDialog(Login.this);progressDialog.setTitle("数据加载中");progressDialog.setMessage("Loading...");progressDialog.s...
分类:移动开发   时间:2015-02-26 16:30:18    阅读次数:200
《Android面试宝典》学习笔记(第四章:对话框、信息提示和菜单)
Android的标准对话框最多可以有几个按钮?显示对话框按钮的方法是什么?3个。newAlertDialog.Builder(this).setTitle("我的对话框").setPositiveButton("关闭", newDialogInterface.onClickListener(){ publicvoidonClick(DialogInterfacedialog,intwhichButton){ //TODO } })...
分类:移动开发   时间:2015-02-11 02:06:44    阅读次数:231
ZLMusic模仿百度音乐应用项目源码
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
175条   上一页 1 ... 11 12 13 14 15 ... 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!