码迷,mamicode.com
首页 >  
搜索关键字:settitle    ( 175个结果
ios7 button settitle setimage 变蓝色
button 调用设置图片和标题在iOS7下会变蓝色,修正办法UIButton* button = [UIButton buttonWithType:UIButtonTypeCustom];将UIButtonTypesystem换成UIButtonTypeCustom...
分类:移动开发   时间:2014-09-23 19:52:15    阅读次数:169
Android产生一个提示框
可以使用AlertDialog.Builder才产生一个提示框首先最简单的是弹出一个消息框:newAlertDialog.Builder(self) .setTitle("标题") .setMessage("简单消息框") .setPositiveButton("确定",null) .show();效果如下:带确认和取消按钮的对话框:newAlertDialog.Builder(self) .setT..
分类:移动开发   时间:2014-09-22 04:25:32    阅读次数:218
php 导出excel
inEncode = $incode; $this->outEncode = $outcode; } public function setTitle($titlearr) { $title = ""; foreach ( $titlearr as $v ) { if ($this->in...
分类:Web程序   时间:2014-09-18 14:41:53    阅读次数:191
用Dialog 做自定义动画,加播放监听
final Dialog customDialog = new Dialog(this);customDialog.setTitle(R.string.attention);customDialog.setContentView(R.layout.connectionview);ImageView ...
分类:其他好文   时间:2014-09-03 12:32:36    阅读次数:192
android 中 actionbar 常用方法。设置标题,隐藏图标等
设置标题: actionBar.setTitle("关于我们"); 使返回箭头出现actionBar.setDisplayHomeAsUpEnabled(true);监听返回按钮的 事件 public boolean onOptionsItemSelected(MenuItem item) { .....
分类:移动开发   时间:2014-08-30 18:59:49    阅读次数:203
android继承Dialog实现自定义对话框
有时需要自定义对话框,可以使用AlterDialog.Bulider,比如下面的代码片段1 new AlertDialog.Builder(self) 2 3 .setTitle("标题")4 5 .setMessage("简单消息框...
分类:移动开发   时间:2014-08-25 16:30:34    阅读次数:221
android检测当前网络是否可用
在android程序中运行第一步就是检测当前有无可用网络如果没有网络可用就退出程序if (isConnect(this)==false) { new AlertDialog.Builder(this) .setTitle("网络错...
分类:移动开发   时间:2014-08-23 19:03:41    阅读次数:182
uibutton 使用settitle后如何修改其中文字对齐方式
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRectMake(5, self.alertView.lableView.frame.size.height + self.checkBox.fra...
分类:其他好文   时间:2014-08-08 11:55:15    阅读次数:246
显示自动升级提醒对话框
public void showUpdateDialog() { AlertDialog.Builder builder = new Builder(this); builder.setTitle("升级提醒:"); builder.setMessage(updateInfo.getDescription()); builder.setPositiveButton("升级", new O...
分类:其他好文   时间:2014-08-08 02:03:55    阅读次数:218
下载apk文件
public void downLoadApk() { final ProgressDialog pd = new ProgressDialog(this); pd.setTitle("正在下载..."); pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); pd.show(); FinalHttp fh = new FinalHt...
分类:其他好文   时间:2014-08-08 02:02:45    阅读次数:216
175条   上一页 1 ... 14 15 16 17 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!