{"id":18884933,"url":"https://github.com/xwjie/androidanotationslistviewdemo","last_synced_at":"2025-10-04T17:09:59.304Z","repository":{"id":83417168,"uuid":"114385391","full_name":"xwjie/AndroidAnotationsListViewDemo","owner":"xwjie","description":"使用androidanotations的listview demo","archived":false,"fork":false,"pushed_at":"2017-12-15T16:11:19.000Z","size":787,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T10:46:24.137Z","etag":null,"topics":["android-annotations","listview"],"latest_commit_sha":null,"homepage":"https://zhuanlan.zhihu.com/p/32066133","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xwjie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-15T15:35:43.000Z","updated_at":"2017-12-16T04:34:59.000Z","dependencies_parsed_at":"2023-03-12T18:24:15.029Z","dependency_job_id":null,"html_url":"https://github.com/xwjie/AndroidAnotationsListViewDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xwjie/AndroidAnotationsListViewDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwjie%2FAndroidAnotationsListViewDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwjie%2FAndroidAnotationsListViewDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwjie%2FAndroidAnotationsListViewDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwjie%2FAndroidAnotationsListViewDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xwjie","download_url":"https://codeload.github.com/xwjie/AndroidAnotationsListViewDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwjie%2FAndroidAnotationsListViewDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270932581,"owners_count":24670241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-annotations","listview"],"created_at":"2024-11-08T07:15:18.265Z","updated_at":"2025-10-04T17:09:54.251Z","avatar_url":"https://github.com/xwjie.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroidAnotationsListViewDemo\n\n使用 `androidanotations` 的 listview demo。是前2年带Android项目时候写的一个很简单的使用 `AndroidAnnotations` 的范例代码。实现了一个很常规的功能，非常少的代码量，低耦合的代码，个人觉得不错。\n\n`AndroidAnnotations` 是基于 `APT` 技术的一个开源框架，确实能减少很多代码量，也不知道现在这种模式是否过时了呢？\n\n当时实在受不了Android开发人员写的代码，无与伦比的耦合性，特意给他们做的一个范例，很简单，主要是演示 `AndroidAnnotations` 的使用和工作机制的。`AndroidAnnotations` 具体的配置大家自己上网找吧。不复杂。\n\n项目中观察发现，没有做过j2ee开发的Android开发人员，【普遍】技术功底很差，编码习惯也是，一些很简单的代码，能写出耦合性非常强的代码，关键是他们还没有感觉到问题在哪里，而且很多人都是这样写的。我猜想他们是看同样的教程入门的，所以才会犯这些同样的错误。可见大家写教程的代码规范的重要性，一不小心就误人子弟了！\n\n\n有兴趣的可以看看代码，使用了`AndroidAnnotations` 简化了很多无关重要的代码。不要看功能，最重要的是，这几个类里面怎么样写到耦合最小。写过Android的同学一对比就知道了。\n\n`APT` 的技术也很简单，项目组之前也写过用于生成java代码，但感觉apt快要过时的样子，用得越来越少了。\n\n![](listview-demo.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwjie%2Fandroidanotationslistviewdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxwjie%2Fandroidanotationslistviewdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwjie%2Fandroidanotationslistviewdemo/lists"}