码迷,mamicode.com
首页 >  
搜索关键字:settitle    ( 175个结果
iPhone UIButton图标与文字间距设置【转】
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(50, 50, 150, 50)]; [button setTitle:@"HHH" forState:UIControlStateNormal]; [button s...
分类:其他好文   时间:2014-07-28 15:17:03    阅读次数:320
PHP设计模式学习笔记: 责任链模式(Chain of Responsibility)
// 抽象书本类 abstract class AbstractBookTopic { abstract function getTopic(); abstract function getTitle(); abstract function setTitle($title_in); } // 书本类,继承自抽象书本类 class ...
分类:Web程序   时间:2014-07-22 09:00:06    阅读次数:228
AlertDialog自定义关闭
如果AlertDialog里有输入框,那么如何根据自己的需要关闭AlertDialog,网上有很多是通过反射方式。这里有另外一种方法。 Builder builder = new Builder(MainActivity.this); builder.setTitle("服务器设...
分类:其他好文   时间:2014-07-21 10:19:04    阅读次数:168
debug debug Unable to add window android.view.View--permission denied for this window type
1 AlertDialog builder=new AlertDialog.Builder(context).setTitle("注意:") 2 .setIcon(R.drawable.dailog_icon) 3 .setMessa...
分类:移动开发   时间:2014-07-07 19:46:09    阅读次数:288
安卓自定义标题栏
在一般开发中,应用的Title都是建立应用时在AndroidManifest.xml中配置的,或是用setTitle设置的简单字符串,要是想加入按钮,图片等多个复杂的布局,请使用以下的方法 功能:把title设置成为一个字串和一个按钮的组合 修改xxActivity.Ja...
分类:移动开发   时间:2014-07-06 14:32:08    阅读次数:222
AlertDialog
new AlertDialog.Builder(AlertActivity.this).setTitle("重要") .setMessage("这是对话框").setPositiveButton("确定", new DialogInterface.OnClickListener() { ...
分类:其他好文   时间:2014-06-30 21:52:10    阅读次数:193
备忘:UIButton 的图片和标题 向左对齐
UIButton setImage 和 setTitle之后,默认的 image和title 对齐方式是居中, 由于 title 长度不固定, 所以如果要几个这样有image有title的按钮纵向排列对齐, 无论你怎么调整 imageEdgeInsets和titleEdgeInsets,都有可能导致前面图片对得不整齐, 所以,干脆来个向左对齐!!简化处理!! 记住了,这么设置: ...
分类:其他好文   时间:2014-06-26 10:49:40    阅读次数:314
Android 退出提示框 代码
转自:http://hi.baidu.com/ittdt/item/d932cf37f486f886c3cf29eanew AlertDialog.Builder(MainEngine.context)//.setTitle("提示").setMessage("确定要退出游戏吗?").setPosi...
分类:移动开发   时间:2014-06-21 07:08:44    阅读次数:210
(一)UI 篇之 Button
let btn1 = UIButton.buttonWithType(.System) as UIButtonbtn1.backgroundColor = UIColor.redColor()btn1.setTitle("Button1", forState: UIControlState.Norm...
分类:其他好文   时间:2014-06-18 13:02:14    阅读次数:141
0301-APP-Dialog
显示7种Dialog下面是图,然后一次对应的代码实现 实现代码 new AlertDialog.Builder(AlertDialogSamples.this) .setIcon(R.drawable.alert_dialog_icon) .setTitle(R.string.alert_dialog_two_button...
分类:移动开发   时间:2014-05-13 05:47:34    阅读次数:446
175条   上一页 1 ... 15 16 17 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!