Description
ComposableButtonToggleGroup is the implementation of MaterialButtonToggleGroup for Jetpack Compose
Composable Button Toggle Group alternatives and similar packages
Based on the "Button Widget" category.
Alternatively, view composable-button-toggle-group alternatives based on common mentions on social networks and blogs.
-
Android-Bootstrap
Bootstrap style widgets for Android, with Glyph Icons -
circular-progress-button
Android Circular Progress Button -
SwitchButton
A cute widget of Switch Button for you to create beautiful and friendly UI. -
FloatingActionButton
[DEPRECATED] Android floating action button -
android-process-button
Android Buttons With Built-in Progress Meters. -
ToggleButton
ToggleButton Widget For Android Dev -
fancybuttons
Icons, Borders, Radius ... for Android buttons -
android-circlebutton
Circle button widget for Android -
android-flat-button
FButton - a flat button library for Android -
FABProgressCircle
Material progress circle around any FloatingActionButton. 100% Guidelines. -
Floating Navigation View
A simple Floating Action Button that shows an anchored Navigation View -
ArrowDownloadButton
A download button with pretty cool animation -
FabButton
Android Floating ActionButton with a progress indicator ring -
CounterFab
A FloatingActionButton subclass that shows a counter badge on right top corner -
StickySwitch
⭐️ beautiful switch widget with sticky animation ⭐️ -
SlideSwitch
A widget you can slide it to open or close something -
HoldingButton
Button which is visible while user holds it. Main use case is controlling audio recording state (like in Telegram, Viber, VK). -
👏 MediumClap-Android
👏 The Medium's Clapping Effect developed in Android -
ExpandableButtonMenu
[DEPRECATED] An Android library for an expandable button menu -
easyloadingbtn
This is a Material Design loading button -
SubmitDemo
comtomize view submit button which you use for submit operation or download operation and so on. -
hkm-progress-button
Base on android-process-button this is the advanced version of the android-process-button. -
Rx.Widgets
Materially inspired widgets and views that expose RxJava bindings. -
code7800
Simplified Codes. https://github.com/san7800/code7800 -
Hugo Example
Bersikaplah terbuka terhadap setiap peluang secara fotografis. Memotret apa pun yang menarik mata Anda
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Composable Button Toggle Group or a related project?
README
Composable Button Toggle Group
ComposableButtonToggleGroup is the implementation of MaterialButtonToggleGroup for Jetpack Compose
Composable Button Toggle Group is the implementation of MaterialButtonToggleGroup for Jetpack Compose. |
---|
Android Arsenal | |
---|---|
Version |
Setup
Add following line of code to your project level gradle file
repositories {
mavenCentral()
}
Add following line of code to your module(app) level gradle file
Groovy:
implementation 'com.robertlevonyan.compose:buttontogglegroup:<Version>'
Kotlin:
implementation("com.robertlevonyan.compose:buttontogglegroup:$Version")
Maven:
<dependency>
<groupId>com.robertlevonyan.compose</groupId>
<artifactId>buttontogglegroup</artifactId>
<version>Version</version>
<type>pom</type>
</dependency>
Usage
RowToggleButtonGroup
Box(modifier = Modifier.fillMaxSize()) {
RowToggleButtonGroup(
modifier = Modifier,
buttonCount = 4,
selectedColor = Color.Gray,
unselectedColor = LightGray,
selectedContentColor = Color.White,
unselectedContentColor = DarkGray,
elevation = ButtonDefaults.elevation(0.dp), // elevation of toggle group buttons
buttonIcons = arrayOf(
painterResource(id = R.drawable.ic_format_align_left),
painterResource(id = R.drawable.ic_format_align_center),
painterResource(id = R.drawable.ic_format_align_right),
painterResource(id = R.drawable.ic_format_align_justify),
),
) { index ->
// check index and handle click
}
}
ColumnToggleButtonGroup
Box(modifier = Modifier.fillMaxSize()) {
ColumnToggleButtonGroup(
modifier = Modifier,
primarySelection = 0,
buttonCount = 2,
selectedColor = Color.Gray,
unselectedColor = LightGray,
selectedContentColor = Color.White,
unselectedContentColor = DarkGray,
elevation = ButtonDefaults.elevation(0.dp), // elevation of toggle group buttons
buttonTexts = arrayOf("Android", "iOS"),
buttonIcons = arrayOf(
painterResource(id = R.drawable.ic_android),
painterResource(id = R.drawable.ic_ios),
),
) { index ->
// check index and handle click
}
}
Versions
1.0.1 - 1.0.5
Icon button support added, Text made single line
1.0.0
First version of library
Contact
- Email: [email protected]
- Website: https://robertlevonyan.com/
- Medium: https://medium.com/@RobertLevonyan
- Twitter: https://twitter.com/@RobertLevonyan
- Facebook: https://facebook.com/robert.levonyan
- Google Play: https://play.google.com/store/apps/dev?id=5477562049350283357
Licence
Composable Button Toggle Group©
Copyright 2022 Robert Levonyan
Url: https://github.com/robertlevonyan/composable-button-toggle-group
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the Composable Button Toggle Group README section above
are relevant to that project's source code only.