Has anyone got PageTurner, TabHost, or anything similar working? I'm
trying to develop a view with multiple "pages" and I'd love to see
some code that works, if anyone has something handy.
Yeah, I know TabHost is deprecated -- what's the replacement?
The next version of the SDK will not provide PageTurner as part of the default set of View. However, tabs will be back.
On Jan 25, 2008 8:54 AM, Ian <heads...@gmail.com> wrote:
> Has anyone got PageTurner, TabHost, or anything similar working? I'm > trying to develop a view with multiple "pages" and I'd love to see > some code that works, if anyone has something handy.
> Yeah, I know TabHost is deprecated -- what's the replacement?
I couldn't find any examples either, so I brute forced my way through
getting a TabHost working. If anyone is interested, I wrote up a
quick example with screenshots:
> Has anyone got PageTurner, TabHost, or anything similar working? I'm
> trying to develop a view with multiple "pages" and I'd love to see
> some code that works, if anyone has something handy.
> Yeah, I know TabHost is deprecated -- what's the replacement?
> I couldn't find any examples either, so I brute forced my way through > getting a TabHost working. If anyone is interested, I wrote up a > quick example with screenshots:
> I'd be interested in a working PageTurner example if anyone has > whipped one up. The diagrams on the documentation page look nice.
> j
> On Jan 25, 9:54 am, Ian <heads...@gmail.com> wrote: > > Has anyone got PageTurner, TabHost, or anything similar working? I'm > > trying to develop a view with multiple "pages" and I'd love to see > > some code that works, if anyone has something handy.
> > Yeah, I know TabHost is deprecated -- what's the replacement?
Anyone got a working example on TabHost and TabWidget ?
Everything I try shows simply nothing. :(
####################
## JAVA onCreate() ##
####################
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.set_menu);
> PageTurner will not be available in the next SDK, do not use it :)
> On Feb 7, 2008 8:20 PM, Jeffrey Sharkey <Jeffrey.Shar...@gmail.com> wrote:
> > I couldn't find any examples either, so I brute forced my way through
> > getting a TabHost working. If anyone is interested, I wrote up a
> > quick example with screenshots:
> > I'd be interested in a working PageTurner example if anyone has
> > whipped one up. The diagrams on the documentation page look nice.
> > j
> > On Jan 25, 9:54 am, Ian <heads...@gmail.com> wrote:
> > > Has anyone got PageTurner, TabHost, or anything similar working? I'm
> > > trying to develop a view with multiple "pages" and I'd love to see
> > > some code that works, if anyone has something handy.
> > > Yeah, I know TabHost is deprecated -- what's the replacement?
From your code, it looks like you need the TabWidget's layout_width to
be fill_parent. Also the paddingTop should be about 65px so you can
see the tab text. Hope this helps. :)
j
On Feb 15, 8:31 am, plusminus <stoeps...@gmx.de> wrote:
> Regards, plusminushttp://anddev.org > # Worlds largest Android Development Community / Tutorials
> On Feb 8, 5:36 am, "Romain Guy" <romain...@google.com> wrote:
> > PageTurner will not be available in the next SDK, do not use it :)
> > On Feb 7, 2008 8:20 PM, Jeffrey Sharkey <Jeffrey.Shar...@gmail.com> wrote:
> > > I couldn't find any examples either, so I brute forced my way through
> > > getting a TabHost working. If anyone is interested, I wrote up a
> > > quick example with screenshots:
> > > I'd be interested in a working PageTurner example if anyone has
> > > whipped one up. The diagrams on the documentation page look nice.
> > > j
> > > On Jan 25, 9:54 am, Ian <heads...@gmail.com> wrote:
> > > > Has anyone got PageTurner, TabHost, or anything similar working? I'm
> > > > trying to develop a view with multiple "pages" and I'd love to see
> > > > some code that works, if anyone has something handy.
> > > > Yeah, I know TabHost is deprecated -- what's the replacement?
> From your code, it looks like you need the TabWidget's layout_width to
> be fill_parent. Also the paddingTop should be about 65px so you can
> see the tab text. Hope this helps. :)
> j
> On Feb 15, 8:31 am, plusminus <stoeps...@gmx.de> wrote:
> > Anyone got a working example onTabHostand TabWidget ?
> > Everything I try shows simply nothing. :(
> > ####################
> > ## JAVA onCreate() ##
> > ####################
> > public void onCreate(Bundle icicle) {
> > super.onCreate(icicle);
> > setContentView(R.layout.set_menu);
> > Regards, plusminushttp://anddev.org > > # Worlds largest Android Development Community / Tutorials
> > On Feb 8, 5:36 am, "Romain Guy" <romain...@google.com> wrote:
> > > PageTurner will not be available in the next SDK, do not use it :)
> > > On Feb 7, 2008 8:20 PM, Jeffrey Sharkey <Jeffrey.Shar...@gmail.com> wrote:
> > > > I couldn't find any examples either, so I brute forced my way through
> > > > getting aTabHostworking. If anyone is interested, I wrote up a
> > > > quick example with screenshots:
> > > > I'd be interested in a working PageTurner example if anyone has
> > > > whipped one up. The diagrams on the documentation page look nice.
> > > > j
> > > > On Jan 25, 9:54 am, Ian <heads...@gmail.com> wrote:
> > > > > Has anyone got PageTurner,TabHost, or anything similar working? I'm
> > > > > trying to develop a view with multiple "pages" and I'd love to see
> > > > > some code that works, if anyone has something handy.
> > > > > Yeah, I knowTabHostis deprecated -- what's the replacement?
did you succeed in putting sth like a GridView instead of "Trivial
Views" into a tab ?
Following(end of post) xml-code works only if I delete the GridView.
Exception is:
"IllegalStateException: addView(View,Layoutparams) is not supported in
AdatperView."
But AdapetrView got that method:
"void addView(View child, LayoutParams params)
Adds a child view with the specified layout parameters."
> > From your code, it looks like you need the TabWidget's layout_width to
> > be fill_parent. Also the paddingTop should be about 65px so you can
> > see the tab text. Hope this helps. :)
> > j
> > On Feb 15, 8:31 am, plusminus <stoeps...@gmx.de> wrote:
> > > Regards, plusminushttp://anddev.org > > > # Worlds largest Android Development Community / Tutorials
> > > On Feb 8, 5:36 am, "Romain Guy" <romain...@google.com> wrote:
> > > > PageTurner will not be available in the next SDK, do not use it :)
> > > > On Feb 7, 2008 8:20 PM, Jeffrey Sharkey <Jeffrey.Shar...@gmail.com> wrote:
> > > > > I couldn't find any examples either, so I brute forced my way through
> > > > > getting aTabHostworking. If anyone is interested, I wrote up a
> > > > > quick example with screenshots:
> > > > > I'd be interested in a working PageTurner example if anyone has
> > > > > whipped one up. The diagrams on the documentation page look nice.
> > > > > j
> > > > > On Jan 25, 9:54 am, Ian <heads...@gmail.com> wrote:
> > > > > > Has anyone got PageTurner,TabHost, or anything similar working? I'm
> > > > > > trying to develop a view with multiple "pages" and I'd love to see
> > > > > > some code that works, if anyone has something handy.
> > > > > > Yeah, I knowTabHostis deprecated -- what's the replacement?
hello sir,
I have a query, if i have 10 items in my TabHost, than how can i add
horizontal scroll in it,
if i restrict the size of TabWidget
android:layout_width="fill_parent", then it reduce the size of each
tab, so that it can fit the total width, and if i increase the size of
android:layout_width="900px", then the size of tabs is increased but
it will not scroll.
how can i scroll the tabs.