2012年12月18日

摘要: public static final int paddingSince: API Level 1Sets the padding, in pixels, of all four edges. Padding is defined as space between the edges of the view and the view's content. A views size will include it's padding. If a background is provided, the padding will initially be set to that (0 阅读全文
posted @ 2012-12-18 17:10 亮0000仔 阅读(386) 评论(0) 推荐(1) 编辑

2012年12月2日

摘要: Android基础概念Context的作用Context字面意思上下文,位于framework package的android.content.Context中,其实该类为LONG型,类似Win32中的Handle句柄,很多方法需要通过Context才能识别调用者的实例,比如说Toast的第一个参数就是Context,一般在Activity中我们直接用this代替,代表调用者的实例为Activity,而到了一个button的onClick(View view)等方法时,我们用this时就会报错,所以我们可能使用ActivityName.this来解决,主要原因是因为实现Context的类主要有 阅读全文
posted @ 2012-12-02 22:16 亮0000仔 阅读(438) 评论(0) 推荐(0) 编辑

导航