{"id":13640837,"url":"https://github.com/biodunalfet/SlidingSquaresLoader","last_synced_at":"2025-04-20T07:31:05.998Z","repository":{"id":78924093,"uuid":"81025738","full_name":"biodunalfet/SlidingSquaresLoader","owner":"biodunalfet","description":"A simple progress loader inspired by Can you Code this UI? Volume 6! - https://stories.uplabs.com/can-you-code-this-ui-volume-6-7bd09fa6dd92#.nyh2zhpvb","archived":false,"fork":false,"pushed_at":"2018-11-12T11:51:41.000Z","size":100,"stargazers_count":149,"open_issues_count":0,"forks_count":12,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-03T01:17:57.313Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biodunalfet.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}},"created_at":"2017-02-05T22:06:53.000Z","updated_at":"2024-01-09T03:48:38.000Z","dependencies_parsed_at":"2023-03-12T06:09:16.752Z","dependency_job_id":null,"html_url":"https://github.com/biodunalfet/SlidingSquaresLoader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biodunalfet%2FSlidingSquaresLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biodunalfet%2FSlidingSquaresLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biodunalfet%2FSlidingSquaresLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biodunalfet%2FSlidingSquaresLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biodunalfet","download_url":"https://codeload.github.com/biodunalfet/SlidingSquaresLoader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223821931,"owners_count":17208763,"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:01:14.895Z","updated_at":"2024-11-09T11:30:26.147Z","avatar_url":"https://github.com/biodunalfet.png","language":"Java","funding_links":[],"categories":["进度条"],"sub_categories":[],"readme":"[![](https://jitpack.io/v/biodunalfet/SlidingSquaresLoader.svg)](https://jitpack.io/#biodunalfet/SlidingSquaresLoader)\n# SlidingSquaresLoader\n\nSliding Square Loader - A simple progress loader inspired by [Can you Code this UI? Volume 6!](https://stories.uplabs.com/can-you-code-this-ui-volume-6-7bd09fa6dd92#.nyh2zhpvb)\n\n![sslv animation](https://media.giphy.com/media/l0ExrZuZO2ihDzAfm/giphy.gif)\n\n## Gradle\n\n**Step 1.** Add the JitPack repository to your build file\n\n``` groovy\nallprojects {\n\trepositories {\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\n**Step 2.** Add the dependency\n\n``` groovy\ndependencies {\n\tcompile \"com.github.biodunalfet:SlidingSquaresLoader:1.0\"\n}\n```\n\n## Usage\n\n* In XML Layout\n\n``` xml\n\u003ccom.hamza.slidingsquaresloaderview.SlidingSquareLoaderView\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    app:sslv_start=\"true\"\n    app:sslv_delay=\"15\"\n    app:sslv_duration=\"150\"\n    app:sslv_gap=\"2dp\"\n    app:sslv_square_length=\"12dp\"\n    app:sslv_color=\"@color/colorPrimary\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    /\u003e\n```\n\n1. `sslv_start` = `boolean` that determines if the loader should start sliding. Default value is `true`.\n2. `sslv_duration` = the amount of milliseconds it takes for a square to complete sliding. Default value is `350`\n3. `sslv_delay` = the number of milliseconds to wait before sliding. Default value is `25`\n4. `sslv_square_length` = the dimension of each square. Default value is `25dp`\n5. `sslv_gap` = the dimension of the gap between each square. Default value is `5dp`\n6. `sslv_color` = the `color` of the square. Defaults to `#ff8f00`\n\n* In Java\n\n``` java\nSlidingSquareLoaderView slidingview2 = (SlidingSquareLoaderView) findViewById(R.id.sliding_view2);\nslidingview.start();    // starts the sliding\nslidingview.stop();     // stops the sliding\nslidingview.setDuration(xxx);   // sets duration of sliding\nslidingview.setDelay(xxx);  // sets delay period before sliding\nslidingview.setColor(Color.parseColor(\"#2196F3\"));  // sets the color of the squares\n```\n\n## License\nThe contents of this repository are covered under the [MIT License](https://github.com/biodunalfet/SlidingSquareLoader/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiodunalfet%2FSlidingSquaresLoader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiodunalfet%2FSlidingSquaresLoader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiodunalfet%2FSlidingSquaresLoader/lists"}