-
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
-
RW-BT-KERNEL-SW-FS.pdf
RW-BT-KERNEL-SW-FS.pdf
- 2020-12-08下载
- 积分:1
-
mvp模式之登录demo
对于MVP(Model View Presenter),大多数人都能说出一二:“MVC的演化版本”,“让Model和View完全解耦”等等。本篇博文仅是为了做下记录,提出一些自己的看法,和帮助大家如何针对一个Activity页面去编写针对MVP风格的代码。从简单的demo了解认识mvp。
- 2022-02-14 17:22:38下载
- 积分:1
-
android 读取天气信息源码下载,简洁天气仿墨迹天气
android 读取天气信息源码下载,简洁天气仿墨迹天气
- 2015-04-24下载
- 积分:1
-
SpeakMessageService
安卓短信语音播报的应用。可以将接受的文字转化为语音,并且通过扬声器播报。(Android SMS voice broadcast applications. Accepted text can be converted to voice, and broadcasted through the speaker.)
- 2020-09-23 14:07:49下载
- 积分:1
-
JavaHTTPUpload-master
这是一个android方面的通信编程源码。。。。。。。。。。(this is a android http demo)
- 2016-06-15 10:42:02下载
- 积分:1
-
Viterbi-Vifekbi-This
说明: 强烈推荐好用的卷积码编码,维特比译码和软判决,本代码简易可行,(Good convolutional code coding, Viterbi decoding and soft decision are highly recommended. This code is simple and feasible.)
- 2019-03-28 00:21:41下载
- 积分:1
-
仿京东筛选的简单实现
仿京东筛选功能的简单实现。主要用到android中的DrawerLayout,即“抽屉”。抽屉的实现关键要注意在资源文件中,把DrawerLayout最好为界面的根布局,官网是这样说的,否则可能会出现触摸事件被屏蔽的问题。
- 2023-01-27 17:45:05下载
- 积分:1
-
Android API人脸检测范例代码
Android API人脸检测范例代码,打开一张含有人脸的照片,程序会自动识别人脸区域,在人的眼睛区域标识出红圈,看着更像是人眼检测,哈哈。这个人脸检测是静态的,也就是打开图片识别,并不能实现像手机取景时的人脸识别功能,仅供参考。
- 2022-06-16 10:41:00下载
- 积分:1
-
仿56视频播放源码
应用背景完美仿56视频,可播放视频,可全屏,可二次开发编辑。关键技术Android 2.1 及以上系统可用,包内含可执行apk及源码,可先安装apk测试验证。编译过程中若有错误提示,请根据编译器版本进行细微修改。
- 2022-02-14 14:50:03下载
- 积分:1