Monday, 11 August 2014

Android Sample Coding-PART 5:


1.Progress Bar:


            Progress Bar  are used to show progress of a task. For example. When you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user.
 <ProgressBar
     style="@android:style/Widget.ProgressBar.Horizontal"
     ... />

Other progress bar styles provided by the system include:

  1. Widget.ProgressBar.Horizontal
  2. Widget.ProgressBar.Small
  3. Widget.ProgressBar.Large
  4. Widget.ProgressBar.Inverse
  5. Widget.ProgressBar.Small.Inverse
  6. Widget.ProgressBar.Large.Inverse  

Screenshot :

          1.1. Progress Bar:



   



          1.2.ProgressBar Dialog:





  Download Code Here

             Progress Bar

            ProgressBar Dialog

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2.Spinner:


            Spinner  are  not nothing but the dropdownlist seen in other programming languages. It provides a easy way to select  value from  list. Clicking spinner will display a dropdownlist with the available values.

Screenshot :

          




  Download Code Here

             Spinner

          

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


3.Toggle Button:


            Toggle   button allows the user to change a setting between two states.


You can add a basic toggle button to your layout with the Toggle Button object.


Screenshot :

          





  Download Code Here

             Toggle

         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

No comments:

Post a Comment