后台代码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
使用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
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
1 AlertDialog.Builder dialod = new AlertDialog.Builder(this); 2 dialod.setTitle("这是一个的会话框"); 3 dialod.setMessage("HAHAHAHAHHAHAH"); 4 ...
分类:
移动开发 时间:
2015-07-15 14:37:28
阅读次数:
116
调整Title字体位置
[button setTitleEdgeInsets:UIEdgeInsetsMake(10, 0, 0, 0)];
四个参数分别代表:上边界,左边界,下边界,右边界
修改UIButton setTitle字体颜色
[button addTarget:self action:@selector(clickAction) for...
分类:
移动开发 时间:
2015-07-14 20:32:28
阅读次数:
307
AlertDialog.Builder builder = new AlertDialog.Builder(FireWallService.this); builder.setTitle("请选择举报类型") // title .setItems(R.array.sty...
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
UIButton * button =[[UIButton alloc]init]; button.backgroundColor=[UIColor redColor]; [button setTitle:@"我是button" forState:UIControlStateN...
分类:
其他好文 时间:
2015-07-08 20:48:37
阅读次数:
136
欢迎加入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
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