-
android联系人带字母检索源码
android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
- 2014-04-13下载
- 积分:1
-
萝莉快跑
萝莉快跑-跑酷源码cocos2d-x,供大家学习交流。
- 2022-03-15 12:01:51下载
- 积分:1
-
Android蓝牙坦克对战游戏
一个简单的Android坦克对战游戏,能够实现本地和蓝牙的坦克移动/对射/切换子弹等功能,本地模式采用了最简单的随机敌人,蓝牙模式基于帧同步方法实现,网络模式只实现了基本的用户登录/用户注册功能,有兴趣的同学可以进一步完善该代码。
在线下载APK地址为:
http://fir.im/w68x
- 2022-12-20 21:40:12下载
- 积分:1
-
Android 解决方案 使用指南
说明: 本文主要介绍Android解决方案中一些功能的使用和调试方法,以及如何使用、调试和注意事项。(This document mainly introduces the use and debugging methods of some functions of Android solution, and introduces the How to use, debugging and precautions.)
- 2020-03-05 11:46:01下载
- 积分:1
-
红外遥控器基于51芯片(源码+原理图)
【实例简介】基于51芯片的红外遥控器驱动代码、原理图、PCB、元器件清单
- 2021-06-29 00:31:09下载
- 积分:1
-
activity
Android activity美轮美奂的切换效果,令你的ui与众不同(Android activity beautiful transition effects, and make your ui distinctive)
- 2014-05-19 13:36:10下载
- 积分:1
-
音乐播放器
实现了基本的播放,暂停,上一首,下一首功能。歌曲来自你的手机内存。界面十分小清新。
- 2022-04-14 15:22:38下载
- 积分:1
-
android GPS定位 记录生活轨迹实例源码下载
android GPS定位 记录生活轨迹实例源码下载
- 2014-09-07下载
- 积分:1
-
cwac-anddown-master
Android组件库CWAC主要用来解决Android 开发中各个方面的常见问题,每个 CWAC 组件打包成一个独立的 jar 文件,JNI处理,本次下载的是CWAC组件库及应用示例(Component library CWAC Android Android is mainly used to solve common problems in all aspects of development, each CWAC components packaged into a separate jar files, JNI treatment, the download is CWAC component library and application examples)
- 2014-04-16 08:49:06下载
- 积分:1
-
TilePuzzle_Android
拼图游戏代码,java实现,可参考,仅供学习(Jigsaw code, java implementation, reference, only to learn)
- 2013-09-24 16:33:20下载
- 积分:1