上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 62 下一页
  2013年8月24日
摘要: #import // UIViewController类为程序提供了基本的视图管理模块@interface NavControllerViewController : UIViewController { // 此处建立标签显示文字;把所需显示的文字标签告诉Interface Builder IBOutlet UILabel *label; // 文本框;把所需显示的文字标签告诉Interface Builder IBOutlet UITextField *textField;}// @property 声明程序的属性@property(nonatomic, retai... 阅读全文
posted @ 2013-08-24 14:02 大米稀饭 阅读(1010) 评论(0) 推荐(0)
摘要: #import // 模板默认引入包含程序需要使用“类”的框架,即 Foundation.h头文件,使它包含在程序中#import // UIViewController类为程序提供了基本的视图管理模块。@interface NavControllerViewController : UIViewController { // 把所需要显示的视图告诉Interface Builder IBOutlet UIWebView *webView;}// 此@property声明程序的属性,加入在@interface中指定的相同webView;@property(nonatomic, re... 阅读全文
posted @ 2013-08-24 13:01 大米稀饭 阅读(392) 评论(0) 推荐(0)
  2013年8月15日
摘要: 第一种方法:使用Spinner时需要配置选项的资源文件,资源文件为一个string类型的数组在res下的values文件夹下新建一个xml文件内容为: 《java开发实战经典》 《J2EE轻量级框架》 《平凡的世界》 《西方哲学简史》 《白鹿原》 《人性的弱点》View Code 界面显示文件配置为:使用Spinner时需要配置选项的资源文件,资源文件为一个string类型的数组在res下的values文件夹下新建一个xml文件内容为: 《java开发实战经典》 《J2EE轻量级框架》 《平凡的世界》 《西方哲学简史》 《白鹿原... 阅读全文
posted @ 2013-08-15 16:13 大米稀饭 阅读(410) 评论(0) 推荐(0)
  2013年8月4日
摘要: View Code FragmentActivity.javapackage com.zyf;import android.os.Bundle;import android.support.v4.app.Fragment;import android.support.v4.app.FragmentManager;import android.support.v4.app.FragmentTransaction;import android.view.View;import android.widget.Frame... 阅读全文
posted @ 2013-08-04 20:52 大米稀饭 阅读(501) 评论(0) 推荐(0)
摘要: package com.example.textdemo2;import java.util.ArrayList;import android.os.Bundle;import android.app.Activity;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.AdapterView;import android.widget.AdapterView.OnItemClickListener;import andro 阅读全文
posted @ 2013-08-04 19:13 大米稀饭 阅读(307) 评论(0) 推荐(0)
摘要: View Code MainActivity2.java 设置闹钟和取消闹钟package com.example.textdemo5;import java.util.Calendar;import android.app.Activity;import android.app.AlarmManager;import android.app.PendingIntent;import android.content.Intent;import android.os.Bundle;import android.view.View;import androi... 阅读全文
posted @ 2013-08-04 19:09 大米稀饭 阅读(655) 评论(0) 推荐(0)
摘要: View Code BMapApiDemoApp.javapackage com.example.textdemo4;import android.app.Application;import android.util.Log;import android.widget.TextView;import android.widget.Toast;import com.baidu.location.BDLocation;import com.baidu.location.BDLocationListener... 阅读全文
posted @ 2013-08-04 18:48 大米稀饭 阅读(927) 评论(0) 推荐(0)
  2013年8月3日
摘要: \res\drawable\radio_button_bg.xml\res\values\strings.xml RadioButtonDemo Hello world! Settings JAVA ASP.NET P H P\res\values\styles.xml \res\menu\activity_radio_button_demo.xml \res\layout\activity_radio_button_demo.xml RadioButtonDemoActivity.j... 阅读全文
posted @ 2013-08-03 23:59 大米稀饭 阅读(745) 评论(0) 推荐(0)
  2013年8月2日
摘要: windows->peferences->General->Editors->Text EditorAppearance color options:选择Background color,去掉System default 在color里选择颜色,然后apply 阅读全文
posted @ 2013-08-02 14:33 大米稀饭 阅读(261) 评论(0) 推荐(0)
  2013年7月22日
摘要: Imei = ((TelephonyManager) getSystemService(TELEPHONY_SERVICE)) .getDeviceId();1.加入权限在manifest.xml文件中要添加 2.代码/** * * *创建日期 2010-4-29 下午05:02:47 * */ package net.sunniwell.app; import android.app.Activity; import android.os.Bundle; import android.telephony.CellLocation;... 阅读全文
posted @ 2013-07-22 17:11 大米稀饭 阅读(317) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 62 下一页