views:

32

answers:

0

Hi there,

was wondering if anyone could help me on how to add a type of 'popup' to Googles Androids GridView example. Found at.. http://developer.android.com/resources/tutorials/views/hello-gridview.html

at the moment I only managed to work out how to set the clicked imaged as a background. How could I have it popup as a View or something? Tried using toast... but I believe this is only for text.

gridview.setOnItemClickListener(new OnItemClickListener(){
        public void onItemClick(AdapterView<?> parent, View v, int position, long id){
            parent.setBackgroundResource((Integer) imageadapter.getItem(position));
        }
    });

Thanks in advance!