---
title: "快速查找（a-z）"
author: "WORM"
date: "2012-12-07T15:39:39Z"
tags: []
categories: ["移动开发"]
slug: "a-z"
draft: false
lastmod: "2012-12-08T10:47:26Z"
id: 1743789
url: "https://worm.iteye.com/blog/1743789"
---

见附件吧

 

工程里代码

public void onTouchingLetterChanged(String s) {  
  // TODO Auto-generated method stub  
  if (alphaIndexer(s) &gt;= 0) {  
   int position = alphaIndexer(s);  
   personList.setSelection(position);  
   overlay.setText(s);  
   overlay.setVisibility(View.VISIBLE);  
   handler.removeCallbacks(overlayThread);  
   handler.postDelayed(overlayThread, 1500);  
  }  
 }

 if (alphaIndexer(s) &gt;= 0) {  
工程里是&gt;，需要改成&gt;=。