• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Browser App Tabs

caetsamuel

Lurker
Oct 17, 2017
6
1
Hello Android Dev Community, this is my first ever post on these forums.

I have a problem. I am currently working on a Web Browser App in Android Studio and have all core functions working (WebView, Home Button, Menu Button) and I also created a Tab button, however I don't know how to go about creating Tabs that the user can navigate through similar to that of Google chrome for instance where clicking on the tabs button opens up multiple (mini webviews) if you will of tabs you have open and displays the webview image and usually the name of the site. I don't know how to go about accomplishing this. I was looking into using Fragments, but have no idea how that would work, especially if I wanted a nice animation transition. I can't find any examples online of the effective approach to creating Tabs for a browser. I don't want to get spooned, I just want to know what classes, Objects, and core methods I should be looking at.
 
The Chrome approach isn't really a tab view though. Even though they refer to the separate browser windows as 'tabs', it's nothing like how the desktop version of their browser works, with the individual tabs along the top.
I would think the Chrome app implements this effect with a CardView

https://developer.android.com/training/material/lists-cards.html

I see, that does look similar to whay they use and good enough for me, but how would I stack them though in 3 dimensional space, one behind another?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones