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
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
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")
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
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)
>
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")
6 matches
Mail list logo