05 2012 档案

摘要:在一个类中创建另外一个类,叫做成员内部类。这个成员内部类可以静态的(利用static关键字修饰),也可以是非静态的。由于静态的内部类在定义、使用的时候会有种种的限制。所以在实际工作中用到的并不多。 在开发过程中,内部类中使用的最多的还是非静态地成员内部类。不过在特定的情况下,静态内部类也能够发挥其独特的作用。 一、静态内部类的使用目的。 在定义内部类的时候,可以在其前面加上一个权限修饰符static。此时这个内部类就变为了静态内部类。不过由于种种的原因,如使用上的限制等等因素(具体的使用限制,笔者在下面的内容中会详细阐述),在实际工作中用的并不是很多。但是并不是说其没有价值。在某些... 阅读全文
posted @ 2012-05-19 23:17 shyscool 阅读(199) 评论(0) 推荐(0) 编辑
摘要:官方API注释如下:Enables or disables the type filter window. If enabled, typing when this view has focus will filter the children to match the users input. Note that the Adapter used by this view must implement the Filterable interface.大概意思就是但listview获得当前焦点的时候,相应用户输入的匹配符。筛选出匹配的listview Items。String[] menus 阅读全文
posted @ 2012-05-11 15:04 shyscool 阅读(4682) 评论(2) 推荐(0) 编辑
摘要:android中布局一般都有两种方式,一种xml声明,另外一种则是程序声明:xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientati 阅读全文
posted @ 2012-05-11 14:36 shyscool 阅读(359) 评论(0) 推荐(0) 编辑
摘要:A dependency exists between two elements if changes to the definition of one element (the supplier) may cause changes to the other (the client). With classes, dependencies exist for various reasons: One class sends a message to another; one class has another as part of its data; one class mentions a 阅读全文
posted @ 2012-05-08 23:28 shyscool 阅读(204) 评论(0) 推荐(0) 编辑