-------------------------8.14------------------------
1. Too many nested layouts kill really slow down your app's performance.
So let's have a look at relative layout.
First, anchored view.
总结一般View的属性
android:id="@+id/***"
android:text="@string/***"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginLeft="dp"
android:layout_marginTop="dp"
android:textSize="sp"
Relative分布
android:layout_below="@id/***"
android:layout_above=""
android:toRightOf=""
android:toLeftOf=""
Align对齐:
android:layout_alignLeft="@+id/"
alignRight/alignTop/alignBottom
为了更加美观可以用:ImageButton
按下和不按两种状态用selector
9-patch image
需要攻克问题:
安卓的网络通信 rss订阅
服务器及数据库的设定
滑动效果的产生
twitter式下拉刷新
下拉菜单设计
--------------------8月16---------------------
download j2se API documentation
Source->Class->Method->Statement
Two uses of main:
1. to test your real class
2.to launch/start your Java application
变量分为primitive/reference
variables must have a type and a name
float变量要加f即float a = 3.5f,否则默认为double
Objects live in one place and one place only-the garbage collectible heap!
Dog mydog = new Dog();
1.Declare a reference variable
2.Create an object Tells the JVM to allocate space for a new Dog object on the heap.
3.Link the object and the reference
Objects have state and behavior, represented by instance variables and methods.
A class describes what an object knows and what an object does.
A method uses parameters. A caller passes arguments.
Java is pass-by-value. That means pass-by-copy
Eclipse 快速注释 ctrl+/
快速窗口最大化 ctrl + m
快速概况 Ctrl + o
快速格式 ctrl + shift + f
spill 溢出
Anatomy 解剖
comma 逗号
semicolon 分号
gadget 小玩意
comment 注释
curly brace 大括号
scoop 挖掘
assignment 赋值
parenthesis 圆括号
concatenate 连接
Objectville
Phrase-O-Matic
spec 说明书 the spec always changes. 需求总是在变化
abstract out 抽象出
pump 泵,打气
polymorphism 多态性