https://github.com/yantze/checkablelist
完美纯净的可选组件列表 android checkable listView
https://github.com/yantze/checkablelist
checkbox example listview radiobutton togglebutton
Last synced: 11 months ago
JSON representation
完美纯净的可选组件列表 android checkable listView
- Host: GitHub
- URL: https://github.com/yantze/checkablelist
- Owner: yantze
- Created: 2017-04-05T02:36:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T03:46:45.000Z (almost 9 years ago)
- Last Synced: 2025-02-15T09:33:19.187Z (12 months ago)
- Topics: checkbox, example, listview, radiobutton, togglebutton
- Language: Java
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Checkable ListView
- 原生 ListView, 可重用 ItemView
- 简单的示例
- 够用就好
- 权当示例
## 出现 ListView 混乱的原因
- Android 应用,有应用内部进程和渲染进程
- ListView 默认是会重用 ItemView, 所以渲染进程会重复让checkbox widget 显示出来
- 需要对每次渲染 checkbox 的时候进行预设, 具体查看 getView (app/src/main/java/com/vastiny/checkablelist/MainActivity.java#L84) 方法