Sam Panagrosso
Sam Panagrosso

Reputation: 1

How to make Tabs in android web browser

I'm making an android browser app (with webviews), but am facing a problem, I don't exactly know how to make tabs for new windows... Is it with fragments ? Thank you so much. Sam Panagrosso

Upvotes: 0

Views: 2561

Answers (2)

RajSharma
RajSharma

Reputation: 1971

You can use FragmentTabHost in order to make Tabs.

Use FragmentTabHost inside that TabWidget then finally TabsContent i,e FrameLayout int the main LayoutFile.

Then you can use one fragment with WebView in the layout file for the Fragment.

An then by Using FragmentTabHost class you can create tabs.

Upvotes: 0

Broak
Broak

Reputation: 4187

You're probably looking for this:

http://developer.android.com/reference/android/widget/TabWidget.html

Upvotes: 1

Related Questions