├── AndroidManifest.xml ├── README.md ├── ic_launcher-web.png ├── image └── 0.jpg ├── libs └── android-support-v4.jar ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ ├── emotionstore_progresscancelbtn.png │ ├── ic_launcher.png │ ├── search_bar_edit_normal.9.png │ ├── search_bar_edit_pressed.9.png │ ├── search_bar_icon_normal.png │ └── show_head_toast_bg.9.PNG ├── drawable-ldpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── drawable │ ├── search_bar_edit_selector.xml │ └── sidebar_background.xml ├── layout │ ├── activity_main.xml │ └── item.xml ├── menu │ └── activity_main.xml ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml └── values │ ├── arrays.xml │ ├── colors.xml │ ├── strings.xml │ └── styles.xml └── src └── com └── example ├── adapter └── SortAdapter.java ├── sortlistview └── MainActivity.java ├── utils ├── CharacterParser.java └── PinyinComparator.java ├── voo └── SortModel.java └── widget ├── ClearEditText.java └── SideBar.java /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # name_indexbar 2 | Name Index Bar(右侧26个英文字母列表的可根据首字母定位的ListView) 3 | 4 | 效果图: 5 | ![Alt text](https://github.com/xuningjack/name_indexbar/raw/master/image/0.jpg) 6 | -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/ic_launcher-web.png -------------------------------------------------------------------------------- /image/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/image/0.jpg -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/libs/android-support-v4.jar -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | -------------------------------------------------------------------------------- /res/drawable-hdpi/emotionstore_progresscancelbtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-hdpi/emotionstore_progresscancelbtn.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-hdpi/search_bar_edit_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-hdpi/search_bar_edit_normal.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/search_bar_edit_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-hdpi/search_bar_edit_pressed.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/search_bar_icon_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-hdpi/search_bar_icon_normal.png -------------------------------------------------------------------------------- /res/drawable-hdpi/show_head_toast_bg.9.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-hdpi/show_head_toast_bg.9.PNG -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuningjack/name_indexbar/c9df8c56c542bfbc4d2c5ee3e8c7f66a3a874512/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable/search_bar_edit_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /res/drawable/sidebar_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 18 | 19 | 22 | 23 | 29 | 30 | 31 | 41 | 42 | 43 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /res/layout/item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 20 | 21 | 22 | 34 | 35 | -------------------------------------------------------------------------------- /res/menu/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /res/values/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 成龙 6 | 王力宏 7 | 汪峰 8 | 王菲 9 | 那英 10 | 张伟 11 | 张学友 12 | 李德华 13 | 郑源 14 | 白水水 15 | 白天不亮 16 | 陈龙 17 | 陈丽丽 18 | 哈林 19 | 高进 20 | 高雷 21 | 阿妹 22 | 阿郎 23 | 陈奕迅 24 | 周杰伦 25 | 曾一鸣 26 | 阮今天 27 | 龚琳娜 28 | 苏醒 29 | 苏永康 30 | 陶喆 31 | 沙宝亮 32 | 宋冬野 33 | 宋伟 34 | 袁成杰 35 | 戚薇 36 | 齐大友 37 | 齐天大圣 38 | 品冠 39 | 吴克群 40 | BOBO 41 | Jobs 42 | 动力火车 43 | 伍佰 44 | #蔡依林 45 | $797835344$ 46 | Jack 47 | ~夏先生 48 | 49 | 50 | -------------------------------------------------------------------------------- /res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #99C60000 4 | #ffffffff 5 | #336598 6 | #E0E0E0 7 | #454545 8 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SortListView 5 | Hello world! 6 | Settings 7 | 8 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 |