isChecked vs. isSelected for Android CheckBoxes and RadioButtons

// I'm thinking this actually checks that the radio button is
// pushed in, but THIS IS ACTUALLY WRONG.
if (myRadioButton.isSelected()) {
// do something
}

--

--

--

Documenting my learnings on my journey as a software engineer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Complete learning path of Android

Image Segmentation in Android with Fritz AI

Android Jetpack Component Overview

Fritz AI in Flutter Applications

Implement Account hold — A complete guide for subscriptions in Google Play

Get more money from your Android App by understanding your users with Firebase Remote Config

Implement Account hold (Part 2) — A complete guide for subscriptions in Google Play

How to watch the Internet connectivity in Android

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Brian Terczynski

Brian Terczynski

Documenting my learnings on my journey as a software engineer.

More from Medium

Tabbed SlidingPaneLayout (Primary/Detail) using the Navigation Component Library ➡️🗔✨

Integration of Huawei Account Kit in Book Reading Android app (Kotlin)

Two-pane layout.

Let’s do Chromecast Videos with Android — Part 5