摘要: 1.进行单元测试需要在Manifest.xml文件里添加如下内容:(1)在application内添加<uses-library android:name="android.test.runner"/>(2)在application外添加<instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.archermind.activity" android:label="tes 阅读全文
posted @ 2012-02-07 14:13 麦芽糖! 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1.新建list_item.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" & 阅读全文
posted @ 2012-02-06 13:45 麦芽糖! 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: 一:simple_list_item_1:每个列表项都是一个普通的TextView;simple_list_item_2:每个列表项都是一个普通的TextView(字体略大);simple_list_item_checked:每个列表项都是一个已勾选的列表项;simple_list_item_mul... 阅读全文
posted @ 2012-01-16 16:44 麦芽糖! 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1.新建类MainTabActivity,继承自TabActivity;FirstTabActivity、SecondTabActivity,继承自Activity2.修改main.xml文件内容为:<?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/android:tabhost" android:lay 阅读全文
posted @ 2012-01-10 15:36 麦芽糖! 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.新建person类文件,定义两个属性:Name,Addresspublic class Person { public string Name { get; set; } public string Address { get; set; } }2.在前台MainPage.xaml文件里定义资源文件 <UserControl.Resources> <model:Person x:Key="test" Name="kelei" Address="湖北" /> </UserControl.Resource 阅读全文
posted @ 2012-01-09 18:35 麦芽糖! 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.建立MyGrid,MyList类package com.archermind.activity;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import android.app.Activity;import android.os.Bundle;import android.widget.GridView;import android.widget.SimpleAdapter;public class MyGrid extends Activit 阅读全文
posted @ 2012-01-09 16:36 麦芽糖! 阅读(481) 评论(0) 推荐(0) 编辑
摘要: <GridView android:id="@+store/grid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@store/main_daohang" android:numColumns="3" 九宫格一行显示三个 android:gravity="center" 九宫格居中 android:verticalSpaci 阅读全文
posted @ 2012-01-09 15:20 麦芽糖! 阅读(222) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { int a = 1; int b = 2; string x = "x"; string y = "y"; Console.WriteLine("Main-->a:{0},b:{1}", a, b); Console.WriteLine("Main-->x:{0},y:{1}", x, y); TestInt(a, b); TestStri... 阅读全文
posted @ 2012-01-08 14:17 麦芽糖! 阅读(312) 评论(0) 推荐(0) 编辑
摘要: View Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=utf-8" http-equiv="C 阅读全文
posted @ 2011-12-14 17:31 麦芽糖! 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.页请求:页请求发生在生命周期开始之前。用户请求页时,Asp.net将确定是否需要分析和编译页(从而开始页的生命周期),或者是否可以在不运行页的情况下发送页的缓存版本以进行响应。2.开始:在开始阶段,将设置页属性,如Request和Response。在此阶段,页还将确定请求是否回发请求还是新请求,并设置IsPostBack属性。此外,在开始阶段期间,还将设置页的UICulture属性。3.页初始化:页初始化期间,可以使用页中的控件,并将设置每个控件的UniqueID属性。此外,任何主题都将应用于页。如果当前请求是回发请求,则回发数据尚未加载,并且控件属性值尚未还原为视图状态中的值。4.加载: 阅读全文
posted @ 2011-12-01 11:09 麦芽糖! 阅读(178) 评论(0) 推荐(0) 编辑