Hey guys,

I am trying to build a GUI for my application using tabs. I have been able
to get tabs up and running, and each tab runs a separate activity, i.e. when
i switch tabs, i switch activities also.

But presently I am only printing text in each of my tabs using the following
code:

package com.cisc.tabs;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class ArtistsActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        TextView textview = new TextView(this);
        textview.setText("This is the Artists tab");
        setContentView(textview);
    }
}

basically, i am running the example given on developer.android.com (Link :
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html
).

Now I want to put widgets in each of my tab. If I had just one window, I
could put the graphical layout [art in my main.xml and it would be called
directly, but now that I have 3 tabs which xml do I put my layout for each
page in and how.

How do i call it from each tab?

Please guide me.

Thanks,

Abhyudai

-- 
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