Android-dev.it Community

 
Annunci

:arrow: Benvenuto!, se non sei ancora un utente registrato: puoi registrati qui, oppure effettua il login
:arrow: Apri un forum sul tuo nuovo smartphone Android e collabora con noi! (dettagli)

www.agendadigitale.org
Image


Sponsor
It is currently Thu May 24, 2012 7:03 am

All times are UTC + 1 hour


 Topics   Replies   Views   Last post 
No new posts Applicazione per gestire SMS

by filippo729 on Wed May 23, 2012 9:39 pm in Sviluppo e programmazione in Android

0

18

Wed May 23, 2012 9:39 pm

filippo729

No new posts На интернет-витрине

by popowahgjfghjoiuyt on Sat May 19, 2012 2:25 pm in Amministrazione

0

17

Sat May 19, 2012 2:25 pm

popowahgjfghjoiuyt

No new posts Apri un forum sul tuo nuovo smartphone Android!

[ Go to page: 1, 2, 3 ]

by ReattileGar on Fri May 18, 2012 5:27 pm in Amministrazione

27

12554

Fri May 18, 2012 5:27 pm

ReattileGar

No new posts Новый: базы для хрумера - профессиональный софт для СЕО.

by Renatafe on Fri May 18, 2012 3:14 pm in Amministrazione

0

25

Fri May 18, 2012 3:14 pm

Renatafe

No new posts Pace is undoubtedly the vital affordable Jerseys Wholesale d

by barnettmmolive2012 on Wed May 16, 2012 7:36 am in Amministrazione

1

49

Wed May 16, 2012 7:36 am

barnettmmolive2012




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Navigare tra view
PostPosted: Sun May 08, 2011 1:46 pm 
Offline
User avatar

Joined: Sun May 01, 2011 9:28 am
Posts: 12
Operatore: 3
Punti Android: ?
Ciao! Ho un'activity che visualizza la main view composta da un LinearLayout contenente una ListView. Questa lista viene popolata e funziona correttamente.

Vorrei che a seguito del click su un item della lista venga visualizzata un'altra view contenente dei bottoni, e una volta cliccato su un bottone che questa nuova view sparisca e ritorni la view principale (quella contenente la lista).

Tutto funziona fino alla pressione del bottone, a questo punto per tornare alla view principale utilizzo

Code:
        setContentView(R.layout.main);

ma la listview è vuota e non riesco più a visualizzare alcun item nemmeno a seguito di modifiche dell'adapter e del notify del cambio dei dati... Dove sbagli?


Top
 Profile  
 
 Post subject: Re: Navigare tra view
PostPosted: Mon May 09, 2011 1:51 pm 
Offline
User avatar

Joined: Thu Dec 27, 2007 7:09 pm
Posts: 659
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 758
Ciao,
ti consiglio di usare la classe ViewSwitcher per passare da una view all'altra: puoi aggiungere le due view usando il metodo addView(...) e puoi passare da una all'altra con i metodo showNext() e showPrevious()


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Topic Tags

view


All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

All trademarks and logos used in this site are of properties of their respective owners.