{"id":17551524,"url":"https://github.com/amirisback/lucky-spin-wheel","last_synced_at":"2025-03-29T07:42:39.706Z","repository":{"id":191392635,"uuid":"683959184","full_name":"amirisback/lucky-spin-wheel","owner":"amirisback","description":"Lucky Spin Wheel","archived":false,"fork":false,"pushed_at":"2023-09-05T09:47:29.000Z","size":261,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T21:35:13.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/amirisback.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://saweria.co/amirisback"}},"created_at":"2023-08-28T06:36:57.000Z","updated_at":"2023-09-05T10:02:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"60d58338-de3e-40ce-ae37-ca65897a319f","html_url":"https://github.com/amirisback/lucky-spin-wheel","commit_stats":null,"previous_names":["amirisback/lucky-spin-wheel"],"tags_count":0,"template":false,"template_full_name":"frogobox/kick-start-android-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Flucky-spin-wheel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Flucky-spin-wheel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Flucky-spin-wheel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Flucky-spin-wheel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirisback","download_url":"https://codeload.github.com/amirisback/lucky-spin-wheel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156011,"owners_count":20732357,"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-10-21T04:46:25.594Z","updated_at":"2025-03-29T07:42:39.680Z","avatar_url":"https://github.com/amirisback.png","language":"Kotlin","funding_links":["https://saweria.co/amirisback"],"categories":[],"sub_categories":[],"readme":"![](https://raw.githubusercontent.com/frogobox/.github/main/docs/image/banner-frogo-kick-start-library.png?raw=true)\n\n## About This Project\n[![Android CI](https://github.com/frogobox/frogo-kick-start-library/actions/workflows/android-ci.yml/badge.svg)](https://github.com/frogobox/frogo-kick-start-library/actions/workflows/android-ci.yml)\n- Template Frogo for creating library\n- Using GitHub Action For CI / CD\n- Privacy Policy [Click Here](https://github.com/frogobox/frogo-kick-start-library/blob/master/PRIVACY-POLICY.md)\n- License [Click Here](https://github.com/frogobox/frogo-kick-start-library/blob/master/LICENSE)\n- Check This Out [Original Repository LuckyWheel_Android by mmoamenn](https://github.com/mmoamenn/LuckyWheel_Android)\n\nRepository for testing build from jitpack.io\n- Red : Failed\n- Green : Success / Pass\n\n## Version Release\nThis Is Latest Release\n\n    ~ Beta Release\n    $version_release = comming-soon\n\nWhat's New??\n\n    * Comming Soon *\n\n## Download this project\n\n### Step 1. Add the JitPack repository to your build file (build.gradle : Project)\n    \n#### \u003cOption 1\u003e Groovy Gradle\n\n    // Add it in your root build.gradle at the end of repositories:\n\n    allprojects {\n        repositories {\n            ...\n            maven { url 'https://jitpack.io' }\n        }\n    }\n\n#### \u003cOption 2\u003e Kotlin DSL Gradle\n\n```kotlin\n// Add it in your root build.gradle.kts at the end of repositories:\n\nallprojects {\n    repositories {\n        ...\n        maven { url = uri(\"https://jitpack.io\") }\n    }\n}\n```\n      \n### Step 2. Add the dependency (build.gradle : Module)\n\n#### \u003cOption 1\u003e Groovy Gradle\n\n    dependencies {\n        // library [project-name]\n        implementation 'com.github.frogobox:[project-name]:comming-soon'\n    }\n\n#### \u003cOption 2\u003e Kotlin DSL Gradle\n\n    dependencies {\n        // library [project-name]\n        implementation(\"com.github.frogobox:[project-name]:comming-soon\")\n    }\n\n**Sample**\n\n![Lucky wheel](https://github.com/mmoamenn/LuckyWheel_Android/blob/master/samples/color_image.png).\n\n**Overview**\n\nThe LuckyWheel shows a wheel which can spin, and a marker that indicates the selected item in the wheel. Items may be customized with text, image, or a color.\n\nThe wheel starts off stationary. Calling the `setTarget()` method with an integer parameter will set the wheel to spin to that section when the user taps the wheel in the UI. Calling `rotateWheelTo()` with an integer parameter will cause the wheel to spin to that section immediately.\n\nThe wheel spins for a few seconds, then fires the `setLuckyWheelReachTheTarget` callback to notify the application it has stopped moving.\n\n**XML**\n\n```xml\n\u003ccom.bluehomestudio.luckywheel.LuckyWheel\n        android:id=\"@+id/lwv\"\n        android:layout_width=\"250dp\"\n        android:layout_height=\"250dp\"\n        android:layout_centerInParent=\"true\"\n        LuckyWheel:background_color=\"@color/colorPrimary\" /\u003e\n```\n\n\nYou must use the following properties in your XML\n\n_Choose the background color_\n\n```xml\nLuckyWheel:background_color\n```\n\n_Choose wheel image arrow_\n\n ```xml\nLuckyWheel:arrow_image\n```\n_Change item image padding_\n\n ```xml\nLuckyWheel:image_padding\n```\n\n**Kotlin**\n\nFunctions to use after reference the Lucky wheel\n\n* Create wheel sections\n\n ```kotlin\n val wheelItems: MutableList\u003cWheelItem\u003e = ArrayList()\n\n wheelItems.add(WheelItem(Color.LTGRAY,\n BitmapFactory.decodeResource(resources, R.drawable.ic_action_name),\n \"text 1\"))\n \n wheelItems.add(WheelItem(Color.BLUE,\n BitmapFactory.decodeResource(resources, R.drawable.ic_action_name),\n \"text 2\"))\n \n wheelItems.add(WheelItem(Color.BLACK,\n BitmapFactory.decodeResource(resources, R.drawable.ic_action_name),\n \"text 3\"))\n \n wheelItems.add(WheelItem(Color.GRAY,\n BitmapFactory.decodeResource(resources, R.drawable.ic_action_name)\n ,\"text 4\"))\n \n wheelItems.add(WheelItem(Color.RED,\n BitmapFactory.decodeResource(resources, R.drawable.ic_action_name),\n \"text 5\"))\n \n wheelItems.add(WheelItem(Color.BLACK,\n BitmapFactory.decodeResource(resources, R.drawable.ic_action_name),\n \"text 6\"))\n \n ```\n\n* Add sections to wheel\n\n ```kotlin\n  addWheelItems(wheelItems)\n ``` \n* Rotate by touch -- set target before user touch wheel\n\n ```kotlin\n  setTarget(3)\n ``` \n* Rotate to section -- not need if you will use touch\n\n ```koltin\n  rotateWheelTo(2)\n ``` \n* On target reach listener\n\n ```koltin\n  lwv.setLuckyWheelReachTheTarget {\n  \n  }\n ```\n\n## Colaborator\nVery open to anyone, I'll write your name under this, please contribute by sending an email to me\n\n- Mail To faisalamircs@gmail.com\n- Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]\n- Example : Github_amirisback_kotlin_admob-helper-implementation\n\nName Of Contribute\n- Muhammad Faisal Amir\n- Waiting List\n- Waiting List\n\nWaiting for your contribute\n\n## Attention !!!\n- Please enjoy and don't forget fork and give a star\n- Don't Forget Follow My Github Account\n\n![](docs/image/mad_score.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirisback%2Flucky-spin-wheel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirisback%2Flucky-spin-wheel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirisback%2Flucky-spin-wheel/lists"}