2012年6月9日
摘要: 手机界面的切换_setContentView的应用res/layout/main.xml:<?xml version="1.0" encoding="utf-8"?><AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:back 阅读全文
posted @ 2012-06-09 20:09 xiacl 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 编写****Activity.java前不要忘记导入包。比如Button类,要引用 import android.widget.Button;输入数组TextView tv =(TextView)findViewById(R.id.TextView01); char char_1[]=new char[5]; char_1[0]='J'; char_1[1]='a'; char_1[2]='m'; char_1[3]='e'; char_1[4]='s'; tv.setText(char_1,1,3);//输出结果 阅读全文
posted @ 2012-06-09 17:01 xiacl 阅读(387) 评论(0) 推荐(0) 编辑