[android-developers] Tabs within tabs fragments overlapping

2013-03-12 Thread vani reddy
Hi  All,

I am using a FragmentActivity(of the compatibility library)  and has 3 tabs
tab1, tab2, tab3 (all are fragments of compatibility library)

tab1 has  3 tabs inside  say tab11, tab12, tab13 (all are fragments of
compatibility library) i referred this link  below to show the tabs

http://android.codeandmagic.org/2011/07/android-tabs-with-fragments/

within tab1 when i switch from tab11 to tab12 and tab13, and finally
comeback to tab11.

In tab11 when i click on an empty space it is detecting  button click of
tab12 and tab13,though buttons are not visible but it is still taking click.

say I have 2 buttons in tab12  i.e 'cancel' and   'submit'. when i touch on
any area of tab11 it is doing the action of cancel and submit buttons
though these buttons are not visible.

Any clue why it is happening??


-- 
Regards,
Vani Reddy

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Tabs in Android Tab Host

2012-11-16 Thread Anand
I have an application that uses custom tab layout with 5 tabs. I am having 
problems displaying these tabs with text appropriately in some smaller 
devices. Is the Google recommended limit for tabs in a tab host 4 tabs. 

This is what this post in stackoverflow suggests

http://stackoverflow.com/questions/7309324/maximum-number-of-tabs-color-of-line-under-tabs

But is there any official documentation from google that says so?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs fragments and split view

2012-09-14 Thread Balky
Hi, 

I know it says clearly if you are new in Android, ask Stack owerflow but, 
when you do that you get negative votes there and lot of smart heads is 
giving you hard time :))

Not always, but. 

What I need to do is get view that looks closest to Google Play app when 
open on certain application, with a minor difference that it has to have 
tabs.

so First part should be slider that slides (like images slide on G.Play), 
and lower part should be scrollable list.

Now, I've read ton's of examples, I've managed to create single Activity 
with 2 fragments in frames, but I can't get it to work within Tabs.

I'd love to stick to fragments, because first item List Item 1 actually 
reloads similar layout under same tab. 

Can anyone give me some advise as I struggled like this:
- I created tabs that are generated through class that implements 
Actionbar.tabs - can't inflate it
- I've implemented them through SherlockFragmentActivity implements 
ActionBar.TabListener, ViewPager.OnPageChangeListener - can't get listview 
to be inflated
- I've tried using TabActivity examples - that is depricated

Can anyone give me directions or working example how to handle tabs, where 
each tab handle some activity.

Yes, I need custom tabs with icons attached, and some text under icon. 

Closest to what I need is asked here, but I do not understand, are these 
tabs at all or image buttons?

http://stackoverflow.com/questions/12372435/how-to-create-tabs-like-twitter-or-instagram-to-work-on-all-android-platforms

Tnx for any advise, help, suggestion.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=enattachment: GeneralView.png

[android-developers] Tabs as IPhone

2012-08-29 Thread chinh quach
Dear all,

I want to make a application which will use Tabs. These Tabs will have
behaviour as IPhone that means :

Tab 1: A - B
Tab 2: C - D

But when from A to B, we will still have Tabs at the bottom of screen. The
B screen will replace the A screen but doesn't replace all screen.

Please help me, how to do it.

Thanks in advance,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Tabs as IPhone

2012-08-29 Thread Liem.T Vo

Have you tried set invisible for tabs?

On 8/29/12 1:54 PM, chinh quach wrote:



Dear all,

I want to make a application which will use Tabs. These Tabs will have 
behaviour as IPhone that means :


Tab 1: A - B
Tab 2: C - D

But when from A to B, we will still have Tabs at the bottom of screen. 
The B screen will replace the A screen but doesn't replace all screen.


Please help me, how to do it.

Thanks in advance,

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Tabs as IPhone

2012-08-29 Thread Vedran Rodic
It is definitely possible to have Tabs and and stack fragments with
FragmentManager.

However, when using the support library, it is buggy on  3.0 devices. (see
https://code.google.com/p/android/issues/detail?id=34775). And using
FragmentManager to programatically show/hide Fragments is clumsy since it
calls their onStart methods.

I'm really not happy with Android provided ways to do this, though it
should be possible to make something similar if you have a lot of time.

Maybe using a TabHost will be better for you. Unfortunately the I can't
find examples easily, since the Android team has chosen to redirect them.

Vedran Rodic

On Wed, Aug 29, 2012 at 8:54 AM, chinh quach quachtoanch...@gmail.comwrote:



 Dear all,

 I want to make a application which will use Tabs. These Tabs will have
 behaviour as IPhone that means :

 Tab 1: A - B
 Tab 2: C - D

 But when from A to B, we will still have Tabs at the bottom of screen. The
 B screen will replace the A screen but doesn't replace all screen.

 Please help me, how to do it.

 Thanks in advance,

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs

2012-05-11 Thread Brian Muscat
Hi,

I am working on an android application project where I am using the tabs.
I would like to connect both the  XML and activity class to the tab how can 
I do this ?

Currently I am using this code
 intent = new Intent().setClass(this, Info.class);
spec = tabHost.newTabSpec(Info).setIndicator(Info,
  res.getDrawable(R.drawable.ic_tab_settings))
  .setContent(R.id.info);
tabHost.addTab(spec);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Tabs

2012-05-11 Thread Justin Anderson

 I would like to connect both the  XML and activity class to the tab how
 can I do this ?

What?  You don't.  Your activity references the XML layout you want the tab
to display.  You tell the tab which activity to use...

 intent = new Intent().setClass(this, Info.class);
 spec = tabHost.newTabSpec(Info).setIndicator(Info,
   res.getDrawable(R.drawable.ic_tab_settings))
   .setContent(R.id.info);
 tabHost.addTab(spec);


This code is wrong... You should change it to this:

 intent = new Intent().setClass(this, Info.class);
spec = tabHost.newTabSpec(Info).setIndicator(Info,
  res.getDrawable(R.drawable.ic_tab_settings))
  .setContent(*intent* http://R.id.info);
tabHost.addTab(spec);



Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, May 11, 2012 at 12:18 AM, Brian Muscat brianmuscat...@gmail.comwrote:

 I would like to connect both the  XML and activity class to the tab how
 can I do this ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] tabs pager application crashed with onbackpress button

2012-02-23 Thread Live Happy
I'm using the sample Google provides, FragmentTabsPager to work with tabs
in my application. and i add the method onbackpress to return to the first
activity but this method crashed my application when i press the back
button or also the home button that i didn't override it

 @Override
  public void onBackPressed()
  {
 //call intent
Intent i = new Intent(this,home.class);
startActivity(i);
finish();


}

it return Null pointer exception at the method onSaveInstanceState

so can anyone help with it thx for answer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] tabs

2012-02-19 Thread Faheem Ansari
hello every one..

i am new to android plz tell me...


i make a web browser using webView...

and also male tabs in the same project

now how can i merge my browser to tab..i want the solution
badly...reply...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] tabs

2012-02-13 Thread TreKing
On Sat, Feb 11, 2012 at 10:31 AM, Faheem Ansari faheemansar...@gmail.comwrote:

 i am creating a web browser in androidi created a whole browser
 and now i want to add it in a tabsi am using android version
 2.2.how can i do it


Write code to do what you want. If you want a better, more detailed answer,
you have to ask a better, more detailed question.
http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs across all ListActivities

2012-02-11 Thread DeucePie
Hi everyone,

New to this group and also app development but the past few weeks I
have been working on an app which is pretty simple in that it is a
lookup table where I have category, subcategory and then the final
item which the users are looking for.

I have read up on activities, views, intents, cursors, etc and I have
been able to get the following created:

Category ListActivity
Subcategory ListActivity
Item ListActivity
Tab TabHost (with two tabs; All Items and Favourites)

The main activity is Tab which will open Category ListActivity which
allows the user to scroll through the categories and click on one
which creates a new intent which starts the SubCategory ListActivity.
Rinse and repeat for subcategory which then takes them to the item
listactivity which has a different view but allows them to find the
correct item information they need.

My issue is that when I launch the app the first activity has the two
tabs but when I create the new intent and click on a category the
subcategory doesn't have the tabs anymore... I setContentView at the
beginning of the SubCategory listactivity to the main.xml which has
tabhost layout with tabwidget and framelayout.

Any suggestions would be greatly appreciated in how to remedy this...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] tabs

2012-02-11 Thread Faheem Ansari
hello


i am new in android development..i am creating a web browser
in androidi created a whole browser and now i want to add it
in a tabsi am using android version 2.2.how can i do
it...please reply...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Tabs inside fragment problem with changing orientation

2012-02-03 Thread ondrej jurčák
I have a fragment with tabs on left side of my screen in landscape
mode. I use tutorial  
http://developer.android.com/reference/android/app/TabActivity.html
to create tabs in this fragment. Everything works fine so far, but
when device change orientation, tabs in tabhost and content disapear.
Problem is in saving fragments state and restore it when orientation
changed, but i don´t now how to fix it.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] tabs onbackPressed

2012-02-01 Thread vani reddy
Hi friends,,
Under tabs when onBackPressed i am showing a dialog box, but its throwing
the below exception

ERROR/WindowManager(979): Activity com.amplyfyme.android.HomeScreen has
leaked window
com.android.internal.policy.impl.PhoneWindow$DecorView@40678fb0 that was
originally added here


Toast.makeText(getParent(), inside back prss,
Toast.LENGTH_SHORT).show();
AlertDialog.Builder builder = new
AlertDialog.Builder(getParent());
builder.setMessage(Are you sure you want to exit?)
.setCancelable(false)
.setPositiveButton(Yes,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int id) {
UserProfileActivity.this.finish();
}
})
.setNegativeButton(No,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int id) {
dialog.cancel();
}
});
alert= builder.create();
alert.show(); //line where exception is thrown

-- 
Regards,
Vani Reddy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] TABS Problem orientation

2011-12-14 Thread ANKUR GOEL
Hi all ,

i am using tab to my application .

in that i want 1 st tab to be in portrait and lanscape both ...and rets of
the tabs in portrait only .

if i dont give the main tab activity the portrait orientation all the tabs
are rotationg to portrait and lanscape ..


so can anyone help me regarding this .


Thanks and Regards:-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs Host Life cycle

2011-11-18 Thread ANKUR GOEL
Can some body tell the life cycle of tab activity

whether the destroy method is called when we switch between the tabs .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs and Multiple Activities

2011-10-15 Thread Janani Mani
Hi,
I'm developing a tab based application. My target device will be
Galaxy Tab 10.1.
I have problem with loading multiple activities within a single tab.

What needs to be done:
There are three tabs…
 a)Has a ListView initially. Onclick of it goes to Detail Page. On
clicking back (not the tabs back button. Back button in the
application.) it had to come back to the list view… With tabs visible
all the time…
 b) This tabs contains Listview and Map View… It has links to other
tabs too…
 c) This is similar to 2nd tab… Some Listviews/MapViews and Some other
data…

Wat i have Done so far is:
1) I tried using ActivityGroup. But when i use it.. after 5 clicks
(back and forth) i get StackOverFlowError. And also i learnt that
Activity Group is depreciated.
2) I see that there are ways to use Views within tabs. But since all
the three tabs are complicated in its own way…. I don't think keeping
all views in same Activity will not be a good idea! (Actually i'm not
able to visualize on who to use all those in single Activity).

Kindly Suggest me some alternatives.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Tabs and Multiple Activities

2011-10-15 Thread Mark Murphy
Get rid of the tabs and choose another UI metaphor.

Or, put the tabs in the action bar, and consider their contents to be
fragments that you manage using FragmentManager and
FragmentTransactions.

On Thu, Oct 13, 2011 at 3:37 PM, Janani Mani jananim...@gmail.com wrote:
 Hi,
 I'm developing a tab based application. My target device will be
 Galaxy Tab 10.1.
 I have problem with loading multiple activities within a single tab.

 What needs to be done:
 There are three tabs…
  a)Has a ListView initially. Onclick of it goes to Detail Page. On
 clicking back (not the tabs back button. Back button in the
 application.) it had to come back to the list view… With tabs visible
 all the time…
  b) This tabs contains Listview and Map View… It has links to other
 tabs too…
  c) This is similar to 2nd tab… Some Listviews/MapViews and Some other
 data…

 Wat i have Done so far is:
 1) I tried using ActivityGroup. But when i use it.. after 5 clicks
 (back and forth) i get StackOverFlowError. And also i learnt that
 Activity Group is depreciated.
 2) I see that there are ways to use Views within tabs. But since all
 the three tabs are complicated in its own way…. I don't think keeping
 all views in same Activity will not be a good idea! (Actually i'm not
 able to visualize on who to use all those in single Activity).

 Kindly Suggest me some alternatives.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Tabs

2011-05-17 Thread suhas
how to delete tabs in android
i can add the tabs dynamically but cannot remove them dynamicallly

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Tabs inside a fragment

2011-05-02 Thread Stephen
Having read the post here: http://goo.gl/6xYBD (Android 3.0-Tabhost)
and based on the lack of a TabFragment it appears that the way to do
things in 3.0 (and I guess above) is to use tabs in the action bar.

My issue is that I'm writing an app that has the fairly standard
'listview on left, content on right' layout, and I'd like my content
on the right to have tabs.  I know I can change the right fragment
using the tabs in the action bar, but from a UI perspective, it just
looks wrong.  The tabs in the action bar look like they preside over
the *whole* application as they are above the left ListView as well.
For example, in the HoneycombGallery app, the Android/Balloons/
Bikes tabs change both the ListView fragment and the content
fragment.  Mine would only change which aspect of the content you're
looking at.

I tried inflating a TabHost into the fragment but I get
NullPointerExceptions when I run TabSpec.setContent (that may be me
doing something wrong - I'll have another run at debugging it but
figured I'd ask this anyway).

I hope that all makes sense.  If I need to explain better please let
me know.  I'm very interested in how others are solving this problem
since I think the 'listview | content' style is quite common.  At the
moment, my alternatives are either to fake tabs with buttons
(something I'd rather avoid) or to present menu buttons in the action
bar to change what you're looking at.

Thank you,

Stephen

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Tabs inside a fragment

2011-05-02 Thread Dianne Hackborn
You can certainly use a TabHost inside of a fragment.  TabHost is just a
view; it doesn't know anything about whatever is outside the view hierarchy
it is running in.

You haven't give the stack crawl of the exception, so it is hard to help
further.

On Mon, May 2, 2011 at 7:30 AM, Stephen stephen.wil...@gmail.com wrote:

 Having read the post here: http://goo.gl/6xYBD (Android 3.0-Tabhost)
 and based on the lack of a TabFragment it appears that the way to do
 things in 3.0 (and I guess above) is to use tabs in the action bar.

 My issue is that I'm writing an app that has the fairly standard
 'listview on left, content on right' layout, and I'd like my content
 on the right to have tabs.  I know I can change the right fragment
 using the tabs in the action bar, but from a UI perspective, it just
 looks wrong.  The tabs in the action bar look like they preside over
 the *whole* application as they are above the left ListView as well.
 For example, in the HoneycombGallery app, the Android/Balloons/
 Bikes tabs change both the ListView fragment and the content
 fragment.  Mine would only change which aspect of the content you're
 looking at.

 I tried inflating a TabHost into the fragment but I get
 NullPointerExceptions when I run TabSpec.setContent (that may be me
 doing something wrong - I'll have another run at debugging it but
 figured I'd ask this anyway).

 I hope that all makes sense.  If I need to explain better please let
 me know.  I'm very interested in how others are solving this problem
 since I think the 'listview | content' style is quite common.  At the
 moment, my alternatives are either to fake tabs with buttons
 (something I'd rather avoid) or to present menu buttons in the action
 bar to change what you're looking at.

 Thank you,

 Stephen

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] tabs and maps

2011-03-09 Thread alok upadhyay
hi,
i am working from i week on map view based tutorial and finally got this
done.What approach i have followed is that:
1. i have used the single activity in which user enters a location name in
text box.
2.as soon as the search button is clicked location name is converted into
lat and lan using geocoder class.
3.then passing this lan and lat to a method returning location on the map.

Now i want to do some RD with this code through tabviews.
MEANS:
1.i want initially a single tab consisting of only textbox and search
button.
2.When user click on search button new tab should be open showing location
that was entered into textbox.

Please guide me !
Thanks,
Alok upadhyay,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs at bottom of Activity

2011-03-07 Thread chetan
Hi All,
 I want to make an Activity which would have tabs at bottom of
screen not at top. I have tried many thing even i have set the
paddingTop parameter of tabwidget to fix . i.e 220px. But this would
not work for different screen sizes.  If somebody have any solution,
let me know.

Thanks
Chetan Chauhan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Tabs at bottom of Activity

2011-03-07 Thread lalit poptani
Hi,

I think u might go for menu items if u want tabs. Menu items work same
as tabs and more than that they are at the bottom of the page


Lalit Poptani T.
Saltriver InfoSystem pvt. ltd.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Tabs at bottom of Activity

2011-03-07 Thread Justin Anderson
Try these:
http://www.anddev.org/viewtopic.php?p=21932
http://stackoverflow.com/questions/2395661/android-tabs-at-the-bottom/2710404#2710404


On Mon, Mar 7, 2011 at 8:43 AM, lalit poptani lalit.popt...@gmail.comwrote:

 Hi,

 I think u might go for menu items if u want tabs. Menu items work same
 as tabs and more than that they are at the bottom of the page


 Lalit Poptani T.
 Saltriver InfoSystem pvt. ltd.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs On Sense Devices

2010-12-11 Thread JimmyHoffa
Hi all,

Has anyone found themselves with the same problem I do when using a
TabWidget on Sense Devices.

It appears that the text colour for selected/unselected tabs are
reversed.  I.e. instead of the selected tab being white text and
unselected gray, it's the other way around so the selected tab is very
difficult to read.

Not sure why this is happening but would love to know if anyone has
any ideas..

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Tabs in android

2010-09-08 Thread TreKing
On Wed, Sep 8, 2010 at 9:19 AM, Ajmer singh ajmer.si...@evontech.comwrote:

 I need to use Tabs in my application,I want to use tabs shown in the image
 attached with email.


Those aren't tabs, they're buttons.


 Could anybody please let me know how this can be done


A Linear or Relative layout containing your buttons (tabs) above and below
your main view should do the trick.


 ,Is there any inbuilt control in android for doing this.Tab that are shown
 in the top and bottom of the screen.


Not that I'm aware of.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs- Each calling a different activity

2010-06-29 Thread Abhyudai Shanker
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Tabs

2010-03-03 Thread ls02
How do I create tabs inside container with no child views attached to
them?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] tabs iphone style

2009-09-15 Thread Wouter

Hey,

How can i make something like this:

http://www.appsstore.nl/apps/fml/fmlscreen1.jpg

So i mean the tabs at the bottom of the screen. It has to be present
on every activity and every tab shows and other activity
(listactivity).

How can i do this?

Wouter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Tabs

2009-07-29 Thread Begining Android

I want to display the footer text to the tabs and i want to create
tabs with images .

please help me i am the android beginer.

Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Tabs and intents

2009-07-26 Thread jouke

Hello all,

I'm trying to use a tabhost and populate tabs using intents and
activities. I've search all the examples I could find and I have
something that gives the right layout but crashes as soon as I open a
dialog. To reproduce it I made a small test program with 2 tabs, one
filled using an xml layout and one using an intend. When I try to open
the spinner in the second tab it crashes complaining about a null
pointer. I'm sure I did something stupid but I can't figure out
what ... please help.

Jouke

SOURCE:
--- Test.java
package com.jouke.test;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class Test extends TabActivity {
private TabHost mTabHost;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tab1);
mTabHost = getTabHost();

mTabHost.addTab(mTabHost.newTabSpec(Tab1)
.setIndicator(Tab1)
.setContent(R.id.tab1));
Intent tab2 = new Intent(this.getApplicationContext
(),tab2.class);
mTabHost.addTab(mTabHost.newTabSpec(Tab2)
.setIndicator(Tab2)
.setContent(tab2));
}
 }
 Tab1.java
package com.jouke.test;

import android.app.TabActivity;
import android.os.Bundle;

public class tab1 extends TabActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tab1);
}
 }
 Tab2.java
package com.jouke.test;

import android.app.TabActivity;
import android.os.Bundle;

public class tab2 extends TabActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tab2);
}
 }
 Test.manifest
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.jouke.test
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.Test
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:name=.tab1
intent-filter
action android:name=android.intent.action.EMBEDDED /

category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:name=.tab2
intent-filter
action android:name=android.intent.action.EMBEDDED /

category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-sdk android:minSdkVersion=3 /
/manifest
--- tab1.xml
?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@android:id/tabhost
android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
TabWidget
android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content/
FrameLayout
android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout 
xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=wrap_content
android:layout_height=wrap_content
android:orientation=vertical
android:id=@+id/tab1
TextView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=hallo /
Spinner
android:id=@+id/spinner1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:entries=@array/spinnerItems/
/LinearLayout
/FrameLayout
/LinearLayout
/TabHost
--- tab2.xml
?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@android:id/tabhost
android:layout_width=fill_parent

[android-developers] Tabs: Error while using TabHost

2009-07-06 Thread Avtar Singh

Hi,

I am trying to write a simple application that creates a new tab. The
view structure is:

FrameLayout
   -- TabHost
   ---TabWidget
   ---FrameLayout

The code is shown below:

public class P4Main extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}

@Override
public void onStart() {
super.onStart();

//We can try to add tabs and related views programmatically here
createAdditionalViews();
}

private void createAdditionalViews()
{
/*
TextView tv = new TextView(this);
tv.setText(Test view);
*/

TabHost thRoot = new TabHost(this);

TabWidget tabs = new TabWidget(this);
tabs.setId(android.R.id.tabs);
thRoot.addView(tabs);

FrameLayout tabcontent = new FrameLayout(this);
tabcontent.setId(android.R.id.tabcontent);
thRoot.addView(tabcontent);

thRoot.setup();

TabHost.TabSpec tabSetup = thRoot.newTabSpec(Setup);
tabSetup.setIndicator(Setup);
TextView tv1 = new TextView(this);
tv1.setText(This is the Setup tag.);
tabSetup.setContent(tv1.getId());
thRoot.addTab(tabSetup);

thRoot.setCurrentTabByTag(Setup);

ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams
(ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT);
this.addContentView(thRoot, lp);
}
}

When I run it, it crashes at the line:
tabSetup.setContent(tv1.getId());

The debug call stack is as below:

ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord)
line: 2266
ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord)
line: 2284
ActivityThread.access$1800(ActivityThread, ActivityThread
$ActivityRecord) line: 112
ActivityThread$H.handleMessage(Message) line: 1692
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123
ActivityThread.main(String[]) line: 3948
Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 521
ZygoteInit$MethodAndArgsCaller.run() line: 782
ZygoteInit.main(String[]) line: 540
NativeStart.main(String[]) line: not available [native method]

What am I missing/doing wrong?

Thanks,
AS

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Tabs Control Code

2009-05-05 Thread Anitha

Hi ,

  This is anitha. I am new to android. I want the application
for the creating tabs. while i was using the code in the  following
link  http://developer.android.com/guide/tutorials/views/hello-tabwidget.html
 it shows that null pointer exception in our design  means main.xml
page  .So pls send the code to me . Its a little bit of urgent for me.

I am using  android 1.1 version.


Thanks in advance.

Thanks  Regards
Anitha.A
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Tabs at bottom of screen

2008-10-31 Thread Al_R

Hi all,
I'm looking for a way to make the tabs appear at the bottom of the
screen. I've had a look at the xml attributes for Tabs in the android
doc, but nothing there seems to have the option and the section for
Tabs is blank. I've also had a look at the SDK examples for tabs but
they all appear at the top of the screen.

The app I'm making needs tabs at the bottom or it will be hassle
trying to switch between them. Any ideas how to go around doing this?

Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---