Android Tutorial on User Interface

15 Aug

Today, we  have learnt how to use some UI widgets.

I am sharing the video of today’s class and also the slides.

Disclaimer about Video:

This have been captured during a class session at BASIS (Bangladesh Association of Software & Information Services) Android Application development course. The audio quality is not good. Also the video was not planned. So please don’t expect professional quality. It was intended as a supplementary course material.

Android Tutorial: How to add Spinner/Dropdown in Android Activity from androidstream on Vimeo.

Disclaimer about Slides:

The tutorials are made based on Android Developer site’s “Hello Tutorials” contents as supplementary course materials. Not used commercially. Can be shared and distributed freely.


Tags: , , , , ,

2 responses to “Android Tutorial on User Interface

  1. shihab uddin

    August 16, 2011 at 6:39 am

    ******to take an item from an spinner , we can use the following code****

    spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
    public void onItemSelected(AdapterView parent, View view, int pos, long id) {
    // use an object to get the selected item in the spinner..
    // this for further use

    Object item = parent.getItemAtPosition(pos);

    // to display the selected item in toast just cast it ,according spinner adapter type..

    Toast.makeText(getApplicationContext(), (CharSequence) parent.getItemAtPosition(position),
    public void onNothingSelected(AdapterView parent) {

  2. shihab uddin

    August 16, 2011 at 7:03 am


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: