{"id":13639092,"url":"https://github.com/yll2wcf/YLListView","last_synced_at":"2025-04-19T21:35:41.280Z","repository":{"id":97786374,"uuid":"48731629","full_name":"yll2wcf/YLListView","owner":"yll2wcf","description":"YLListView仿IOS弹簧效果的ListView","archived":false,"fork":false,"pushed_at":"2015-12-30T07:57:00.000Z","size":1475,"stargazers_count":255,"open_issues_count":0,"forks_count":60,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-03T01:13:47.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/yll2wcf.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}},"created_at":"2015-12-29T06:29:28.000Z","updated_at":"2024-04-01T09:19:01.000Z","dependencies_parsed_at":"2023-04-13T12:04:54.036Z","dependency_job_id":null,"html_url":"https://github.com/yll2wcf/YLListView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yll2wcf%2FYLListView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yll2wcf%2FYLListView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yll2wcf%2FYLListView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yll2wcf%2FYLListView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yll2wcf","download_url":"https://codeload.github.com/yll2wcf/YLListView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223810264,"owners_count":17206723,"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","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":[],"created_at":"2024-08-02T01:00:57.546Z","updated_at":"2024-11-09T09:30:36.244Z","avatar_url":"https://github.com/yll2wcf.png","language":"Java","funding_links":[],"categories":["ListView"],"sub_categories":[],"readme":"# YLListView\nYLListView仿IOS弹簧效果的ListView\n\n![](https://raw.githubusercontent.com/yll2wcf/YLListView/master/gif/1.gif)\n\n使用方法\n   \n\t compile 'com.a520wcf.yllistview:YLListView:1.0.1'\n\n\n\n使用介绍:\n\t    \n布局:\n\n\t\u003ccom.a520wcf.yllistview.YLListView\n        android:divider=\"@android:color/transparent\"\n        android:id=\"@+id/listView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        /\u003e\t\n\n代码:\n\n    private YLListView listView;\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n        listView = (YLListView) findViewById(R.id.listView);\n        // 不添加也有默认的头和底\n        View topView=View.inflate(this,R.layout.top,null);\n        listView.addHeaderView(topView);\n        View bottomView=new View(getApplicationContext());\n        listView.addFooterView(bottomView);\n\n        // 顶部和底部也可以固定最终的高度 不固定就使用布局本身的高度\n        listView.setFinalBottomHeight(100);\n        listView.setFinalTopHeight(100);\n\n        listView.setAdapter(new DemoAdapter());\n\n        //YLListView默认有头和底  处理点击事件位置注意减去\n        listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n            @Override\n            public void onItemClick(AdapterView\u003c?\u003e parent, View view, int position, long id) {\n                position=position-listView.getHeaderViewsCount();\n            }\n        });\n\n\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyll2wcf%2FYLListView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyll2wcf%2FYLListView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyll2wcf%2FYLListView/lists"}