[android-developers] Re: Tab Issue:

2008-12-29 Thread Mark Murphy
diya blore wrote: > Can u give more information on this tab issue.. Only if you ask specific questions. :-) Seriously, there are a number of demonstrations of tabs, in the Android SDK, on blogs, in (*cough*) books, etc. Most will use Views instead of Intents. If you have questions that are not

[android-developers] Re: Tab Issue:

2008-12-29 Thread diya blore
Can u give more information on this tab issue.. On Thu, Dec 25, 2008 at 8:51 AM, Mark Murphy wrote: > > diya blore wrote: > > Can i implement this in single activity.? > > Yes. > > > As above process code has two avtivity.. can it be in single activity? > > is it possible? > > Yes. > > Instead

[android-developers] Re: Tab Issue:

2008-12-25 Thread Mohamed Amir
I want to have tabs using XML and Views at the same time i.e. To have an XML describing all the tabs, and I add tabs like that tabs.addTab(tabs.newTabSpec("First Tab") .setIndicator("First Tab") .setContent(R.id.tab1)); tabs.addTab(tabs.newTabSpec("Second Tab")

[android-developers] Re: Tab Issue:

2008-12-25 Thread Mark Murphy
diya blore wrote: > Can i implement this in single activity.? Yes. > As above process code has two avtivity.. can it be in single activity? > is it possible? Yes. Instead of an Intent, give the tab a View. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Andr

[android-developers] Re: Tab Issue:

2008-12-24 Thread diya blore
Hi, Can i implement this in single activity.? As above process code has two avtivity.. can it be in single activity? is it possible? On 12/24/08, Eric Chan wrote: > public class MyTabActivityextends TabActivity > { > @Override > protected void onCreate(Bundle savedInstanceState) >

[android-developers] Re: Tab Issue:

2008-12-24 Thread Eric Chan
public class MyTabActivityextends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TabHost tabs =getTabHost(); tabs.addTab(tabs.newTabSpec("First Tab") .setIndicator("First Tab")