{"id":27237444,"url":"https://github.com/austin17ng/austin_segmentedcontrol","last_synced_at":"2025-07-03T05:03:07.595Z","repository":{"id":286155604,"uuid":"960550832","full_name":"austin17ng/Austin_SegmentedControl","owner":"austin17ng","description":"A segmented control (tabs) library for Jetpack Compose","archived":false,"fork":false,"pushed_at":"2025-04-17T12:43:44.000Z","size":3361,"stargazers_count":32,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T05:03:03.457Z","etag":null,"topics":["android","jetpack-compose","jetpack-compose-library","kotlin","segmentedcontrol","tablayout"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/austin17ng.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":"2025-04-04T16:20:32.000Z","updated_at":"2025-06-05T08:53:58.000Z","dependencies_parsed_at":"2025-04-07T05:39:34.116Z","dependency_job_id":null,"html_url":"https://github.com/austin17ng/Austin_SegmentedControl","commit_stats":null,"previous_names":["austinng17/austin_segmentedcontrol","austin17ng/austin_segmentedcontrol"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/austin17ng/Austin_SegmentedControl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin17ng%2FAustin_SegmentedControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin17ng%2FAustin_SegmentedControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin17ng%2FAustin_SegmentedControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin17ng%2FAustin_SegmentedControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austin17ng","download_url":"https://codeload.github.com/austin17ng/Austin_SegmentedControl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin17ng%2FAustin_SegmentedControl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263264640,"owners_count":23439247,"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":["android","jetpack-compose","jetpack-compose-library","kotlin","segmentedcontrol","tablayout"],"created_at":"2025-04-10T18:24:58.243Z","updated_at":"2025-07-03T05:03:07.586Z","avatar_url":"https://github.com/austin17ng.png","language":"Kotlin","readme":"# Austin Segmented Control\n:sheep: A segmented control (tabs) library for Jetpack Compose :sheep:\n\n\n\n\u003cimg src=\"/images/demo_v200.gif\" alt=\"drawing\" width=\"350\"/\u003e\n\n## Examples\n### A basic example\n```\n@Composable\nfun Example() {\n    var index by remember { mutableIntStateOf(0) }\n    Column(\n        Modifier.fillMaxSize().background(color = Color(0xFFFFFFFF))\n    ) {\n        Spacer(Modifier.height(64.dp))\n        SegmentedControl(\n            selectedIndex = index,\n\t\t    itemWidthMode = ItemWidthMode.Proportional,\n            segmentedControlProperties = SegmentedControlPropertiesDefault.values().copy(offset = 16.dp, indicatorHorizontalPadding = 6.dp),\n            onItemSelected = {\n                index = it\n            },\n            items = listOf(\n                SegmentedControlItem(\"Home\"),\n                SegmentedControlItem(\"Stats\"),\n                SegmentedControlItem(\"Transactions\")\n            )\n        )\n    }\n}\n```\n\n### Other examples\nYou can find additional examples of usage and customization [here](app/src/main/java/me/austinng/austinsegmentedcontrol/MainActivity.kt).\n\n## Installation\n\n1. Add `Jitpack Repository` to your `settings.gradle` file:\n\n```\nmaven { url 'https://jitpack.io' }\n```\n\n2. In your app’s `build.gradle` file, add the dependency:\n\n```\ndependencies {\n\timplementation 'com.github.austin17ng:Austin_SegmentedControl:2.0.0'\n}\n```\n \n## Default properties\n\n```\n\nobject SegmentedControlPropertiesDefault {\n    @Composable\n    fun values() = SegmentedControlProperties(\n        offset = 0.dp,\n        containerBackgroundColor = Color(0x1F767680),\n        containerPadding = 2.dp,\n        containerCornerRadius = 9.dp,\n        indicatorElevation = 12.dp,\n        indicatorShadowColor = Color(0xFF000000),\n        indicatorBorderWidth = 0.5.dp,\n        indicatorBorderColor = Color(0x0A000000),\n        indicatorColor = Color(0xFFFFFFFF),\n        indicatorRadius = 7.dp,\n        indicatorVerticalPadding = 6.dp,\n        indicatorHorizontalPadding = 12.dp,\n        animationDurationMillis = 500,\n        labelFontSize = 12.sp,\n        labelFontWeight = FontWeight.Medium,\n        labelColor = Color(0xFF000000),\n        easing = FastOutSlowInEasing,\n    )\n}\n\n```\n\n## Contributing\n\nFeel free to contribute by submitting issues or pull requests. And please ensure that all pull requests are checked out from the `main` branch.\n\n## Related Projects\n- [Austin Tab](https://github.com/austin17ng/austin-tab) –🐑 An adaptive and lightweight tab layout for Android 🐑.\n\n\n## License\n\nAustin SegmentedControl is licensed under the MIT License.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustin17ng%2Faustin_segmentedcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustin17ng%2Faustin_segmentedcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustin17ng%2Faustin_segmentedcontrol/lists"}