Hii all,

I have three Image buttons as:

1.Sequences(This is an image having)
2.Videos(a video file)
3.Information(this is an image file)

    Now  what i want is that as user clicks on the imageButton
Sequences a new image should be open .when clicks on Videos, a new
video shoul be open and when clicks on Information An information
image opens.

i have tried to code something like:

package com.example.imageButton;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class imageButton extends Activity {

    private static ImageButton seqIBtn;
    private static ImageButton vidIBtn;
    private static ImageButton infoIBtn;

    // Create a button click listener for the Done button.
    private final ImageButton.OnClickListener btnDoneOnClick = new
ImageButton.OnClickListener() {
        public void onClick(View v) {
        //now how to open new images after clicking here

        }
    };

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        //Get pointers to the Views defined in main.xml
        seqIBtn = (ImageButton) findViewById(R.id.btnSequence);
        vidIBtn = (ImageButton) findViewById(R.id.btnVideo);
        infoIBtn = (ImageButton) findViewById(R.id.btnInfo);
        seqIBtn.setOnClickListener(btnDoneOnClick);
        vidIBtn.setOnClickListener(btnDoneOnClick);
        infoIBtn.setOnClickListener(btnDoneOnClick);
    }
}


i am able to see my all the three images in my simulator.
Please help me

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to