Android学习记录3 (8/14-8/16)

-------------------------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 多态性

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值