To Announcements

IT 372 -- Jetpack Compose Examples

Table of Contents for Examples

Jetpack Compose Examples

  1. TextWithTitle Example -- Display text with title at the top of display.
          MainActivity.kt
  2. DisplayImage Example -- Display title and image.
          MainActivity.kt   andromeda.jpg
  3. ClickMe Example -- Change the text of the button when it is clicked.
          MainActivity.kt
  4. ClickCounter2 Example -- Change the text of the button when it is clicked.
          MainActivity.kt
  5. ClickableText Example -- Change the text in a Text element when it is clicked.
          MainActivity.kt
  6. TempConv6 Example -- Enter a Celsius text value in the TextField element and convert it to Fahrenheit when the button is clicked. This is the example from the Intro to JetPackCompose document.
          MainActivity.kt
  7. ScrollableColumn Example -- Display numbers 1 to 20 in a Column that is set to scrollable.
          MainActivity.kt
  8. LazyColumn Example -- Display numbers 1 to 20 in a LazyColumn. A Column renders all items, even the ones not in the viewport, whereas a LazyColumn only renders items in the viewport for better performance. A LazyColumn is scrollable by default.
          MainActivity.kt
  9. TestCheckboxSwitch1 Example -- Display the states of the checkbox and switch in the Text element when the button is clicked.
          MainActivity.kt
  10. TestCheckboxSwitch2 Example -- Display the current states of the checkbox and switch in the Text element when the states change.
          MainActivity.kt
  11. TestRadioButton1 Example -- Display the currently checked radio button when the button is clicked.
          MainActivity.kt
  12. TestRadioButton2 Example -- Display the currently checked radio button after an unchecked radio button is checked.
          MainActivity.kt
  13. TestSlider Example -- Display the slider value in a Text element as the slider thumb is moved.
          MainActivity.kt