Skip to content

类似微信通讯录界面,选择国家电话区号

Notifications You must be signed in to change notification settings

yeshu-cn/AreaCodeSample

Repository files navigation

AreaCodeSample

类似微信通讯录界面,选择国家电话区号

  1. 自定义侧边栏字母索引表IndexView
  2. 使用RecyclerView.ItemDecoration实现微信通讯录列表中字母显示
  3. 使用RecyclerView.ItemDecoration实现列表的分割线显示
  4. RecyclerView滑动到指定position,并置顶显示。可设置滑动速度
  5. 使用TinyPinyin实现中文转拼音,中文按拼音首字母排序

列表的实现

  1. 继承Item,实现抽象方法
  2. Adapter继承SimpleRecyclerViewAdapter,其中的List数据传入第一步中实现的类
  3. AreaCodeIndexDecoration中实现画list index view

License

MIT License

Copyright (c) 2023 yeshu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

类似微信通讯录界面,选择国家电话区号

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages