SuperbookKing

2012年7月21日

3.用户接口UI布局----View控件的概述之TextView

摘要: TextView(view 子类)----控件能向用户展现文本信息//在程序中创建TextView对象TextViewtv=new TextView(this);tv.setText("你好");setContentView(tv);//在XML布局文件中使用----通过解析xml文件构造view类设置字体的大小推荐使用sp作为单位android:layout_width="wrap_content" android:layout_height="fill_parent"android:height设置文本区域的高度,支持度量单位:p 阅读全文

posted @ 2012-07-21 14:00 SuperbookKing 阅读(228) 评论(0) 推荐(0)

2012年7月20日

2.Activity的概述

摘要: AnActivityis an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface. The window typically fills the screen, but may 阅读全文

posted @ 2012-07-20 12:54 SuperbookKing 阅读(172) 评论(0) 推荐(0)
1.android开发学习前准备

摘要: 1. 要有java基础 2.安装JDK 官方下载地址: http://www.oracle.com/technetwork/java/javase/downloads/index.html 当前最新版本是java se 7u5 3.下载Eclipse 官方下载地址: http://www.eclipse.org/downloads/ 根据需要下载 32Bit或64 Bit 版本的(现大多数windows操作系统是32 Bit) 4.安装Android SDK 官方下载地址: http://developer.android.com/sdk/index.html 5.安装Ec... 阅读全文

posted @ 2012-07-20 09:32 SuperbookKing 阅读(373) 评论(0) 推荐(0)