摘要: BaseAdapter 需要实现的① 继承类的构造方法② public int getCount()③ public Object getItem(int position)④ public long getItemId(int position)⑤ public View getView(int position , View converView , ViewGroup parent) 这个很重要,这个View 显示 某一指定位置的视图。模版如下:public class ImageAdapter extends BaseAdapter { private Context mCo... 阅读全文
posted @ 2012-11-28 13:06 热血小伙 阅读(162) 评论(0) 推荐(0) 编辑
摘要: public interfaceAdapter间接子类:ArrayAdapter,BaseAdapter,CursorAdapter,HeaderViewListAdapter,ListAdapter,ResourceCursorAdapter,SimpleAdapter,SimpleCursorAdapter,SpinnerAdapter,WrapperListAdapter1.ListAdaterpublic interface ListAdapter implementsAdapterandroid.widget.ListAdapterKnown Indirect SubclassesA 阅读全文
posted @ 2012-11-28 12:38 热血小伙 阅读(205) 评论(0) 推荐(0) 编辑
摘要: List View IconsIN THIS DOCUMENTAll Android VersionsStructureLight, effects, and shadowsSEE ALSOSupporting Multiple ScreensNew Guides for App Designers!Check out the new documents for designers atAndroid Design, including more guidelines forIconography.List view icons look a lot like dialog icons, bu 阅读全文
posted @ 2012-11-28 12:15 热血小伙 阅读(460) 评论(0) 推荐(0) 编辑
摘要: Android开发中规范化的命名规则对于后期的维护很重要。因此,一套良好的开发规则是项目开发质量保障必不可少的部分,大家在此集思广益,共同总结。Control NameShutcutTextViewtxtButtonbtnLinkButtonlnkbtnImageButtonimgbtnListBoxlstCheckBoxchkRadioButtonrdobtnImageViewimgViewAnalogClock DigitalClockdcDatePickerdpTimePickertpToggleButtontgBtnEditTextedtProgressBarproBarSeekBar 阅读全文
posted @ 2012-11-27 19:04 热血小伙 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 首先我们要知道Android 内部存储 (Internel Storage)和 外部存储(External Storage) 的存储的分类。Internel Storage : 通常就是手机自带的内存(Flash),这个存储空间,总是可用的,文件默认保存到这里,卸载应用程序时,与程序相关的文件将一并被自动删除。Externel Storage : 通常就是 SD 内存卡,可知他并不是总是可用的,它可能被卸载(unmount)。它总是可读的(world-readable),应用程序被卸载时,系统自动删除通过getExternalFilesDir()得到的目录下的文件。Internel 有读写限制 阅读全文
posted @ 2012-11-22 17:14 热血小伙 阅读(185) 评论(0) 推荐(0) 编辑