01 2012 档案

摘要:一:simple_list_item_1:每个列表项都是一个普通的TextView;simple_list_item_2:每个列表项都是一个普通的TextView(字体略大);simple_list_item_checked:每个列表项都是一个已勾选的列表项;simple_list_item_mul... 阅读全文
posted @ 2012-01-16 16:44 麦芽糖! 阅读(306) 评论(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 麦芽糖! 阅读(303) 评论(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 麦芽糖! 阅读(218) 评论(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 麦芽糖! 阅读(497) 评论(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 麦芽糖! 阅读(230) 评论(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 麦芽糖! 阅读(324) 评论(0) 推荐(0)