About 810 results
Open links in new tab
  1. How to collapse/expand widget code region/area in Compose Android ...

    Nov 28, 2022 · If you wish to make your Column collapse or expand without animation you simply need to add a if statement and set true to display false to collapse. var visible by remember { mutableStateOf (true) } Text("Click to expand or collapse", modifier = Modifier. .fillMaxWidth() .clickable { visible = !visible. if(visible) {

  2. How to expand Box Composable by toggleSwitch(Android , Jetpack Compose ...

    Mar 7, 2023 · According to the shape of the calendar, I would like to change the size of the box's Row-type text under the calendar, such as being pulled and pushed. How can i fix it? Code: var selectedOption by remember { mutableStateOf(states[0]) } val onSelectionChange = { text: String -> selectedOption = text }

  3. Creating Expandable Sections with Compose | by Pouya ... - Medium

    Oct 20, 2023 · In this article, you will learn how to create an expandable section using Jetpack Compose. Expandable sections are like drawers in your app. They help with organizing your content and provide a better user experience. First, create the …

  4. android - Difference Between Expanded and LayoutSize.Expand

    They are two ways to achieve the same thing: The Expanded modifier forces a target component to fill all available space. It can be applied to any composable that accepts a modifier. The mainAxisSize parameter is a way to set the size of the layout, and is a parameter that is specific to Row/Column. You should use the Expanded modifier.

  5. How to make Expandable List with Jetpack Compose

    Aug 27, 2022 · In this tutorial, I’ll show you how to make an expandable list using Jetpack Compose. Each row contains two composable views: a header (HeaderView), and an expandable view (ExpandableView). The user taps the HeaderView, and the ExpandableView expands or collapses according to its previous state.

  6. Expandable Text in Android using Jetpack Compose

    Mar 6, 2025 · In this article, we will show you how you could create an expandable text in Android using Jetpack Compose. Follow the below steps once the IDE is ready. To create a new project in the Android Studio, please refer to How to Create a new Project in Android Studio with Jetpack Compose. Note: Select Kotlin as the programming language.

  7. How to implement Expandable Text in Jetpack Compose

    Jan 2, 2024 · This feature allows you to seamlessly expand or collapse text within the content, providing flexibility to adapt to different use cases. Use ExpandableText if: You need to handle long texts or...

  8. Jetpack Compose: Creating Expandable Cards With Content

    Mar 30, 2023 · In this tutorial, we will create an expandable card using Jetpack Compose. Step 1: Create a Composable Function for the Card. The first step is to create a composable function representing the...

  9. Compose layout basics | Jetpack Compose | Android Developers

    6 days ago · This document focuses on the layout of elements, explaining some of the building blocks Compose provides to help you lay out your UI elements. Goals of layouts in Compose. The Jetpack Compose implementation of the layout system has two main goals: High performance; Ability to easily write custom layouts

  10. Creating Expandable Sections with Compose - droidcon

    Oct 29, 2023 · Are your ViewModels exponentially growing out of control as they manage the state for each of your Composables? This talk introduces Molecule, a new library for creating state holders in Jetpack Compose.

  11. Some results have been removed
Refresh