Android学习(1)
来源:互联网 发布:java 线程共享变量 编辑:程序博客网 时间:2024/06/05 02:21
在Android还是1.1的时候就写过一些hello world的入门,一直没有时间深入学习。昨天把相关的环境都升级到了最新(1.5),试了一下Google官方提供的Demo:Notepadv1。
在学习的时候,碰到的问题:(http://docs.google.com/Doc?id=dgj5ns3n_1103cmqpvwhb)
(1)Syntax error on tokens, delete these tokens
android:id="@android:id/list"
android:id="@android:id/empty"
Screen Layout
ListActivity has a default layout that consists of a single, full-screen list in the center of the screen. However, if you desire, you can customize the screen layout by setting your own view layout with setContentView() in onCreate(). To do this, your own view MUST contain a ListView object with the id "@android:id/list" (or list if it's in code)
Optionally, your custom view can contain another view object of any type to display when the list view is empty. This "empty list" notifier must have an id "android:empty". Note that when an empty view is present, the list view will be hidden when there is no data to display.
android:id="@+id/text1"
另外,在阅读其官方文档的时候,发现了一个关于Activity lifecycle的图片,如下:
这个对于理解Activity应该很有用处。
代码就不单独贴出来了,晚上把它svn到Google Code上。
- android 学习 1 创建android
- Android学习(1)
- android学习笔记1
- Android学习笔记-1
- android jni 学习1
- android学习笔记1
- android学习历程1
- android学习笔记(1)
- android学习资源-1
- Android学习日记1
- android 北风 学习1
- Android学习-计算器1
- Android 学习笔记1
- android学习笔记1
- android 学习笔记1
- android phone学习1
- android学习笔记(1)
- Android学习笔记1
- 简析产品开发过程管理之——软件测试
- 如何让新版的top显示多个cpu信息?
- 《asp.net 3.5核心编程》读书笔记1
- tomcat不能热部署
- 当翻译服务器宕机之后。。。。
- Android学习(1)
- Windows2008 “下载文件夹”丢失后重建
- Solve the issue: ORA-29701 :unable to connect to Cluster Manager
- 配置方案:php5.0+Apache2.2
- 活用office工具把PDF文件转换成word文件
- chilkat载入java library path异常
- 区分继承和模板
- 在cygwin下测试perl
- 黄金降落伞