- 博客(9)
- 资源 (8)
- 收藏
- 关注
原创 focus
1.call requestFocus() on that component. Note that it wont work in touch mode (== after the user touched the screen) because the Android UI design calls for no focused/selected element in
2009-11-27 14:53:00 1104
原创 Scroller 粗浅理解
public class TestTextView extends Activity { /** Called when the activity is first created. */ LinearLayout lay1,lay2,lay; private Scroller mScroller; private boolean s1,s2;
2009-11-24 15:14:00 17072 5
原创 declare-styleable, 自定义属性
Normal 0 7.8 pt 0 2 false false false MicrosoftInternetExplorer4 <!-- /*
2009-11-24 09:43:00 6802 2
原创 layout_weight
Normal 0 7.8 pt 0 2 false false false MicrosoftInternetExplorer4 <!-- /*
2009-11-24 09:39:00 1613
原创 padding and layout_margin
Normal 0 7.8 pt 0 2 false false false MicrosoftInternetExplorer4 <!-- /*
2009-11-24 09:34:00 1879
原创 事件处理
activity和VIEW都能接收触摸和按键,如果响应事件只需要在继承类里复写事件函数即可但是对于VIEW来说,我们如果不改变DRAW,不需要继承,所以如果想响应事件,则需要当一个视图(如一个按钮)被触摸时,该对象上的onTouchEvent()方法会被调用。不过,为了侦听这个事件,你必须扩展这个类并重写该方法。很明显,扩展每个你想使用的视图对象(只是处理一个事件)是荒唐的。
2009-11-24 09:31:00 8709
原创 merge usage
The was created for the purpose of optimizing Android layouts by reducing the number of levels in view trees You could not apply this trick if your layout was using a LinearLayout as its
2009-11-23 14:10:00 867
原创 自定义VIEWGROUP的一个用法
图片看http://www.curious-creature.org/2009/03/01/android-layout-tricks-3-optimize-part-1/merge xmlns:android="http://schemas.android.com/apk/res/android"
2009-11-23 14:00:00 3045
原创 比较LINEARLAYOUT和RELATIVELAYOUT在LISTVIEW中的内存耗用
图片见:http://www.curious-creature.org/2009/02/22/android-layout-tricks-1/ 在LINEARLAYOUT布局里,多用了一个LINEARLAYOUT,造成每一个VIEW建立时都用多创建一个,资源浪费The layout pass can be especially expensive when you nest se
2009-11-23 09:46:00 1692
Android Essentials
2009-09-01
effectice java第二版
2009-03-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人