Adding drop down widget in Android application HD
Adding drop down widget in Android application Subscribe To My Channel and Get More Great Tutorials http://www.youtube.com/subscription_center?add_user=sandeepbhandari1 Ask me A Question http://bit.ly/1MBekaP If you are new to android development then you may be never heard about spinner in android but you must hear about dropdown list before. Android spinners are not nothing but the dropdown list seen in other programming languages. It provides an easy way to select value from list. Clicking spinner will display a dropdown list with the available values. Let’s see this concept with an example, which is quite simple with very few lines of code. In this simple example I am displaying static data in spinner and after selecting an item from spinner a toast message will be shown. You need to put the items in XML as string array that you want to be shown in dropdown list. From your activity class you just need to pull the data from string array and show them as dropdown list item. That’s all for creating dropdown list. Use the drop down widget to allow user to select one of the option from multiple choices. By using the drop down widget, the apps provide a unique experience as with drop down in web pages. Download source code for this tutorial at http://www.javaexperience.com/android/DropDownExample.zip Subscribe To My Channel and Get More Great Tutorials http://www.youtube.com/subscription_center?add_user=sandeepbhandari1 Ask me A Question http://bit.ly/1MBekaP ---------------------------------------------------- Stay connected to Java Experience: Website: http://www.javaexperience.com Facebook: https://www.facebook.com/javaexper Twitter: https://twitter.com/javaexper Google+: https://plus.google.com/u/0/b/114543155372255472922/114543155372255472922/posts?pageId=114543155372255472922 Adding drop down widget in Android application
Похожие видео
Показать еще