button 调用设置图片和标题在iOS7下会变蓝色,修正办法UIButton* button = [UIButton buttonWithType:UIButtonTypeCustom];将UIButtonTypesystem换成UIButtonTypeCustom...
分类:
移动开发 时间:
2014-09-23 19:52:15
阅读次数:
169
可以使用AlertDialog.Builder才产生一个提示框首先最简单的是弹出一个消息框:newAlertDialog.Builder(self)
.setTitle("标题")
.setMessage("简单消息框")
.setPositiveButton("确定",null)
.show();效果如下:带确认和取消按钮的对话框:newAlertDialog.Builder(self)
.setT..
分类:
移动开发 时间:
2014-09-22 04:25:32
阅读次数:
218
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
final Dialog customDialog = new Dialog(this);customDialog.setTitle(R.string.attention);customDialog.setContentView(R.layout.connectionview);ImageView ...
分类:
其他好文 时间:
2014-09-03 12:32:36
阅读次数:
192
设置标题: actionBar.setTitle("关于我们"); 使返回箭头出现actionBar.setDisplayHomeAsUpEnabled(true);监听返回按钮的 事件 public boolean onOptionsItemSelected(MenuItem item) { .....
分类:
移动开发 时间:
2014-08-30 18:59:49
阅读次数:
203
有时需要自定义对话框,可以使用AlterDialog.Bulider,比如下面的代码片段1 new AlertDialog.Builder(self) 2 3 .setTitle("标题")4 5 .setMessage("简单消息框...
分类:
移动开发 时间:
2014-08-25 16:30:34
阅读次数:
221
在android程序中运行第一步就是检测当前有无可用网络如果没有网络可用就退出程序if (isConnect(this)==false) { new AlertDialog.Builder(this) .setTitle("网络错...
分类:
移动开发 时间:
2014-08-23 19:03:41
阅读次数:
182
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
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