{"id":19289693,"url":"https://github.com/yingding/autocentering","last_synced_at":"2026-04-12T08:39:03.501Z","repository":{"id":77877534,"uuid":"521701322","full_name":"yingding/autoCentering","owner":"yingding","description":"this repo demonstrates the bug of wear compose autoCentering","archived":false,"fork":false,"pushed_at":"2022-08-05T17:06:07.000Z","size":788,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T23:43:39.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yingding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-08-05T16:10:25.000Z","updated_at":"2022-08-05T16:30:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0e81707-225e-44f8-9b31-34f0bad3eabe","html_url":"https://github.com/yingding/autoCentering","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yingding/autoCentering","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2FautoCentering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2FautoCentering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2FautoCentering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2FautoCentering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingding","download_url":"https://codeload.github.com/yingding/autoCentering/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingding%2FautoCentering/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31709294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-09T22:16:49.498Z","updated_at":"2026-04-12T08:39:03.485Z","avatar_url":"https://github.com/yingding.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About this project\n\nThis repository demonstrates the different setting for `ScalingLazyListState` and `autoCentering` params of `ScalingLazyColumn` of the Wear\nof the wear-compose lib `androidx.wear.compose:compose-material:1.0.0`\n\n```kotlin\n   /* working and show full screen image directly */\n   val stateParams = Pair(0, 0)\n   val autoCenteringParams = Pair(0, 0)\n\n   /* working and show full screen image with 40 px offset directly */\n   val stateParams = Pair(0, 40)\n   val autoCenteringParams = Pair(0, 40)\n\n   /* not working and show black screen, at first, with scrolling the image appears */\n   val stateParams = Pair(1, 0)\n   val autoCenteringParams = Pair(1, 0)\n   /* not working, conflict of settings */\n   val stateParams = Pair(1, 0)\n   val autoCenteringParams = Pair(2, 0)\n```\n\n# Different Behaviours\n\nWith the params\n```kotlin\n      val stateParams = Pair(0, 0)\n      val autoCenteringParams = Pair(0, 0)\n```\nThe demo app works as expected, will show a full screen image and a text right at app start.\nhttps://github.com/yingding/autoCentering/blob/main/video/showImageAtStart.mov\n\nWith the params\n```kotlin\n   val stateParams = Pair(1, 0)\n   val autoCenteringParams = Pair(1, 0)\n```\nor\n```kotlin\n   val stateParams = Pair(1, 0)\n   val autoCenteringParams = Pair(2, 0)\n```\nThe demo app doesn't work as exprected, will show a black screen at app start.\nAfter the manually interaction through scrolling, the full screen image is then shown.\nhttps://github.com/yingding/autoCentering/blob/main/video/NotShowingImageAtStart.mov\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingding%2Fautocentering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyingding%2Fautocentering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyingding%2Fautocentering/lists"}