Hide and seek of window

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Hide and seek of window

Postby Archana » Mon May 05, 2008 10:36 am

Hi i am using icon in my map.when i click the icon it must show specified window and when i again clicked the same icon that window must be invisible.Anybody know how to do this .please send me useful link for this...
Archana
Archana
Experienced Developer
Experienced Developer
 
Posts: 53
Joined: Thu Feb 28, 2008 12:00 pm
Location: Bangalore

Top

Postby Jesmiatka » Fri May 23, 2008 9:06 am

Hi,

I haven't tested this but I think this might work

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         private void toggleWindow(View v) {
  2.  
  3.                 if(v.getVisibility == View.VISIBLE){
  4.  
  5.                 v.setVisibility(View.INVISIBLE);
  6.  
  7.                 } else {
  8.  
  9.                 v.setVisibility(View.VISIBLE);
  10.  
  11.                 }
  12.  
  13.         }
  14.  
  15.  
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Yours sincerely,
Mike
Jesmiatka
Senior Developer
Senior Developer
 
Posts: 164
Joined: Mon Feb 04, 2008 3:37 pm
Location: Netherlands

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests