ListView 实现点击侧边A-Z快速查找

From:

ListView 实现点击侧边A-Z快速查找

文章插图
为了实现上面的A-Z 快速定位的功能
ListView 实现点击侧边A-Z快速查找

文章插图
下面是main.xml的布局文件
[html] view plain copy
其中定义了一个和定义了一个右侧边的View
ListView 实现点击侧边A-Z快速查找

文章插图
【ListView 实现点击侧边A-Z快速查找】下面是的code
[java] view plain copy
。。ianc; 。util 。regex 。; 。。; 。。; 。。Color; 。。Paint; 。。; 。util 。; 。view 。; 。view 。View;{er;[]b={"#","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};=-1;=();(,,){super(,attrs,);}(,){super(,attrs);}(){super();}(){super 。
();if(){ 。(Color 。("#"));}=();=();=/b 。;for(inti=0;i0&&c0&&c0){=(s); 。(); 。(s); 。(View 。); 。(); 。(,1500);}}(){inti=0;for(;i