运行效果:
方法一
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
AndroidManifest.xml配置文件对于Android应用开发来说是非常重要的基础知识,本文旨在总结该配置文件中重点的用法,以便日后查阅。下面是一个标准的AndroidManifest.xml文件样例。
[html] view
plaincopy
xml version="1.0" encoding="utf-8"?...
分类:
移动开发 时间:
2014-06-05 10:46:40
阅读次数:
281
一、Activity的使用:package com.example.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androi...
分类:
移动开发 时间:
2014-06-05 09:36:01
阅读次数:
276
本文为阅读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
View类的实现:
package com.bn.summer;
import and...
分类:
移动开发 时间:
2014-06-05 02:06:57
阅读次数:
311
网上好多说法 但实际上说到点上的没有 不想写太长 直接进入正题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