运行效果:
方法一
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
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
一: MVC简介:
MVC模式(Model-View-Controller)是软件工程中的一种软件架构模式,把软件系统分为三个基本部分:模型(Model)、视图(View)和控制器(Controller)。
MVC模式的目的:实现一种动态的程序设计,使后续对程序的修改和扩展简化,并且使程序某一部分的重复利用成为可能。除此之外,此模式通过对复杂度的简化,使程序结构更加直观。软件系统通过对自身基本...
分类:
Web程序 时间:
2014-06-05 00:54:40
阅读次数:
359
1、消息接口namespace IBLL{ public interface IMsg { List
GetMsgList(); }}View Code2、消息A实现namespace BLLA.Abs{ /// /// 抽象工厂调用 /// ...
分类:
其他好文 时间:
2014-05-31 21:11:19
阅读次数:
296
1、消息产品接口namespace IBLL{ public interface IMsg {
List GetMsgList(); }}View Code2、消息A实现 public class Msg:IBLL.IMsg { public ...
分类:
其他好文 时间:
2014-05-31 21:07:59
阅读次数:
311