Vertical alignment of Row doesn’t center properly
I’m programming a few examples from the Android training courses and i’m stuck on a little detail. I want to align a text composable and a switch composable vertically, but somehow the switch composable is settled always a little higher than the text composable. I made a simple app to demonstrate my problem. The app contains a column with a text, followed by a row (row contains a text and a switch) and finally a text again. Within the row, I want the text composable and the switch composable to be vertically aligned.
Vertical alignment of Row dosn’t center properly
I’m programming a few examples from the Android training courses and i’m stuck on a little detail. I want to align a text composable and a switch composable vertically, but somehow the switch composable is settled always a little higher than the text composable. I made a simple app to demonstrate my problem. The app contains a column with a text, followed by a row (row contains a text and a switch) and finally a text again. Within the row, I want the text composable and the switch composable to be vertically aligned.