码迷,mamicode.com
首页 >  
搜索关键字:settitle    ( 175个结果
搜索结果页面关键字加红加粗
后台代码List<Notice>nlist=query.list(); for(Noticenotice:nlist){ notice.setTitle(notice.getTitle().replaceAll(keyword,"<fontcolor=‘red‘><B>"+keyword+"</B></font>")); }参考文章:http://bbs.csdn.net/topics/260004056if(key!=null){..
分类:其他好文   时间:2015-07-29 19:36:41    阅读次数:114
AlterDialog 常用的样式
使用AlerDialog 创建对话框 : AlertDialog.Builder builder = new AlertDialog.Builder(this); 1.设置简单的对话框 builder.setIcon(R.drawable.icon); builder.setTitle("你确定要离开吗?"); builder.setPositive...
分类:其他好文   时间:2015-07-22 14:37:27    阅读次数:240
AlertDialog
newAlertDialog.Builder(MainActivity.this) .setTitle("Difficulty") .setItems( newString[]{"easy","medium","hard"}, newDialogInterface.OnClickListener(){ @Override publicvoidonClick(DialogInterfacedialogInterface,intidx){ //... } } ) .show();
分类:其他好文   时间:2015-07-15 15:16:44    阅读次数:88
Android对话框的生成
1 AlertDialog.Builder dialod = new AlertDialog.Builder(this); 2 dialod.setTitle("这是一个的会话框"); 3 dialod.setMessage("HAHAHAHAHHAHAH"); 4 ...
分类:移动开发   时间:2015-07-15 14:37:28    阅读次数:116
iOS修改UIButton setTitle字体颜色和调整字体位置
调整Title字体位置 [button setTitleEdgeInsets:UIEdgeInsetsMake(10, 0, 0, 0)]; 四个参数分别代表:上边界,左边界,下边界,右边界 修改UIButton setTitle字体颜色 [button addTarget:self action:@selector(clickAction) for...
分类:移动开发   时间:2015-07-14 20:32:28    阅读次数:307
window悬浮窗中选择框
AlertDialog.Builder builder = new AlertDialog.Builder(FireWallService.this); builder.setTitle("请选择举报类型") // title .setItems(R.array.sty...
分类:Windows程序   时间:2015-07-13 18:29:41    阅读次数:171
swift创建第一个UIButton 并增加点击事件
var button1 = UIButton(frame: CGRectMake(100, 200, 100, 40))                  button1 .setTitle("first button", forState:UIControlState.Normal)                  button1.addTarget(self, action: "fi...
分类:编程语言   时间:2015-07-09 13:18:06    阅读次数:359
UIKit之浅析UIButton
UIButton * button =[[UIButton alloc]init]; button.backgroundColor=[UIColor redColor]; [button setTitle:@"我是button" forState:UIControlStateN...
分类:其他好文   时间:2015-07-08 20:48:37    阅读次数:136
跟连乐一起学Scala-高级类型
欢迎加入Scala讨论QQ群212859367,和连乐一起讨论学习!单例类型 例子:class Document{ def setTitile(title: String) = {...; this} def setAuthor(author: String) = {...; this} ... }val atticle.setTitle("whatever floats...
分类:其他好文   时间:2015-07-04 18:26:16    阅读次数:204
UI_Target/action 设计模式
RootView.m 中 UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; button.frame = CGRectMake(100, 100, 100, 40); [button setTitle:@"Target" forState:UIControlStateNormal]; [se...
分类:其他好文   时间:2015-07-04 11:13:20    阅读次数:97
175条   上一页 1 ... 9 10 11 12 13 ... 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!