• Custom_Toast_Alert_-_Android_Example

    Custom Toast Alert - Android Example  Custom Toast Alert - Android Example

    In this example creating a custom toast alert with one image and text.

    Toast alert is a notification message that display for certain amount of time, and automtaically fades out after set time.

    Use it to show alert message to user.
    Use it for debugging your application.

    android.widget.Toast class used to create toast alert message.
     

    Read More
  • Custom_Spinner_With_Image_And_Text_-_Android_Example

    Custom Spinner With Image And Text - Android Example  Custom Spinner With Image And Text - Android Example

    In this Example creating custom spinner with one image and two texts.

    After spinner item selection showing selected item text on screen.

    Steps :

           1.  Create Model (SpinnerModel.java) to store data for each spinner row.
           2.  Create a ArrayList to store Model (SpinnerModel.java) objects.
           3.  Store data in Models and Store Model objects in Arraylist.
           4.  Pass Model object Arraylist to custom adapter.
           5.  Custom Adapter use Arraylist data (Model Objects) and create rows for Spinner.
           6.  Create listener for Spinner and show spinner item selected values on activity.

    Read More