badgh.blogg.se

Android studio spinner documentation
Android studio spinner documentation






android studio spinner documentation android studio spinner documentation

The tutorial that follows is a very simple re-introduction to Android’s spinner widget. So several weeks ago when I caught myself implementing a list view when what really made the most sense was a spinner, I decided to see how far things have come. The first time I added a drop-down, I mean spinner, to one of my layouts, I was horrified at the eyesore that appeared on my emulator ( Figure A).Īs a result I decided to go the list view route - but that was five years ago. For whatever reason, the architects of the Android SDK chose to rename what I knew as a drop-down list to a spinner. A quick Google search corrected my vernacular. When I built my first Android app, I was shocked to discover there wasn’t a drop-down list widget. Drop-downs provide a way to limit the user’s choices to a list selection, without eating up all the screen real estate that a traditional list view would consume. Prior to developing Android apps, I used a lot of drop-down lists when building user interfaces. Francis goes back to basics with this beginner Android tutorial on when and how to use UI kit spinner widgets. Pro tip: Take a second look at Android’s spinner widget








Android studio spinner documentation