运行效果:
方法一
public void openDialog(View v) {
// 打开一个对话框
// 构建者对象
AlertDialog.Builder builder = new Builder(this);
// 构建者创建一个对话框
AlertDialog alertDialog = builder.create();
// 设置对话框的标题
...
分类:
移动开发 时间:
2014-06-07 01:14:00
阅读次数:
252
MainActivity如下:
package cc.c;
import java.util.List;
import android.os.Bundle;
import android.os.Process;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Bu...
分类:
移动开发 时间:
2014-06-05 10:47:50
阅读次数:
299
本文为阅读http://blog.csdn.net/xiaominghimi/article/details/6089594的tt...
分类:
移动开发 时间:
2014-06-05 09:08:29
阅读次数:
329
1.找到设备的identifier
2.进入https://developer.apple.com
3.点击devices
4.把identifier加入并注册
5.打开xcode,按command+,
6.点击你的证书,进入view details
7.刷新即可...
分类:
移动开发 时间:
2014-06-05 08:31:16
阅读次数:
282
今天开发时遇到个小问题,view.seterror的文字由于和theme重叠而无法显示,以前就遇到过,不过想换种方法。
有人说在style里面加@android:color/primary_text_light
@android:color/primary_text_light
<!--
Theme customizatio...
分类:
其他好文 时间:
2014-06-05 07:52:53
阅读次数:
190
一:知识点部分权限是做网页经常要涉及到的一个知识点,在使用MVC做权限设计时需要先了解以下知识:MVC中Url的执行是按照Controller->Action->View页面,但是我们经常需要在函数执行所指定的Action之前或者action方法之后处理一些逻辑,为了处理这些逻辑,ASP.NET
M...
分类:
Web程序 时间:
2014-05-31 15:49:58
阅读次数:
444
(1)在Resource
View中创建或者插入一个新的Icon资源,用于你想要的程序图标,假设ID号为IDI_ICON(这种图标要有16*16和32*32两种格式的,前者用于最小化和列表显示等,后者用于桌面图标和平铺显示等-如你给图片)(2)CTESTDlg::CTESTDlg(CWnd*
pPa...
分类:
编程语言 时间:
2014-05-31 15:23:16
阅读次数:
327
在iOS应用的开发过程中,经常会使用,setFrame的方式对UIView进行布局,经常会使用计算的方式,如self.view.bounds.size.height
- 20-44- Heignt等来计算Y的相对位置我们知道上边的数字 20是status bar的高度,44是navigationBa...
分类:
其他好文 时间:
2014-05-31 15:09:59
阅读次数:
231
网上好多说法 但实际上说到点上的没有 不想写太长 直接进入正题Intent intent =
new
Intent(Intent.ACTION_VIEW);intent.addCategory(Intent.CATEGORY_DEFAULT);intent.setDataAndType(Uri.fr...
分类:
移动开发 时间:
2014-05-31 12:42:34
阅读次数:
283
ProblemYou want to point out a specific
location on a map to the user.SolutionUse built-in map view annotations. Follow
these steps:1. Create a new cl...
分类:
其他好文 时间:
2014-05-31 12:30:19
阅读次数:
240