Switching from ListActivity to Activity

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

Switching from ListActivity to Activity

Postby jclova » Tue Nov 03, 2009 7:07 pm

Hi,
How do I display LinearLayout from ListView?

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public class Class1 extends ListActivity {
  2.  
  3.  
  4.  
  5.          public void onCreate(Bundle savedInstanceState) {
  6.  
  7.                 super.onCreate(savedInstanceState);
  8.  
  9.                 //setContentView(R.layout.main);
  10.  
  11.         }
  12.  
  13. }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public class Class2 extends Activity {
  2.  
  3.          public void onCreate(Bundle savedInstanceState)
  4.  
  5.         {
  6.  
  7.                 super.onCreate(savedInstanceState);
  8.  
  9.                 setContentView(R.layout.main2);
  10.  
  11.                
  12.  
  13.         }
  14.  
  15. }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


How can I display from Class1(ListActivity) to Class2(Activity)?

Basically I want to display non-listview of detail screen
when one of the listview item is clicked.

Thanks in advance.
jclova
Freshman
Freshman
 
Posts: 3
Joined: Tue Oct 20, 2009 9:33 pm

Top

Postby wiederke » Wed Nov 04, 2009 1:19 pm

Hi,

you can switch between activities with Intents.

Read this: http://developer.android.com/guide/topi ... lters.html


Bye,

Torsten
wiederke
Experienced Developer
Experienced Developer
 
Posts: 72
Joined: Mon Mar 02, 2009 6:46 pm
Location: Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 4 guests