1. Download our Official Android App: Forums for Android!

Android Browser App Tabs

Discussion in 'Android Development' started by caetsamuel, Oct 17, 2017.

  1. caetsamuel

    caetsamuel Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    6
    Joined:
    Oct 17, 2017

    Oct 17, 2017
    6
    1
    6
    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.
     

    Advertisement

  2. caetsamuel

    caetsamuel Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    6
    Joined:
    Oct 17, 2017

    Oct 17, 2017
    6
    1
    6
    Also for the record, I know this is not an easy task and for my first Android project I probably shouldn't habe chose this, but I am willing to learn. Especially since I need more experience with using different view types.
     
  3. LV426

    LV426 Illegitimi non carborundum
    Moderator
    Rank:
     #23
    Points:
    1,238
    Posts:
    5,280
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    5,280
    6,898
    1,238
    Male
    Software developer
    South West of England
  4. caetsamuel

    caetsamuel Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    6
    Joined:
    Oct 17, 2017

    Oct 17, 2017
    6
    1
    6
    I was thinking about using that but that's not exactly what I wanted, I wanted it to be more like the Google chromes tabs where it shows you them as pages stacked on one another when you click the tabs icon.
     
  5. caetsamuel

    caetsamuel Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    6
    Joined:
    Oct 17, 2017

    Oct 17, 2017
    6
    1
    6
    Maybe you know a way to do it that way?
     
  6. LV426

    LV426 Illegitimi non carborundum
    Moderator
    Rank:
     #23
    Points:
    1,238
    Posts:
    5,280
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    5,280
    6,898
    1,238
    Male
    Software developer
    South West of England
    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
     
  7. caetsamuel

    caetsamuel Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    6
    Joined:
    Oct 17, 2017

    Oct 17, 2017
    6
    1
    6
    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?
     
  8. Cyberdev

    Cyberdev Android Expert
    Recognized Developer
    Rank:
     #147
    Points:
    173
    Posts:
    902
    Joined:
    Sep 12, 2014

    Sep 12, 2014
    902
    279
    173
    Female
    Daily YouTuber
    Tampa, FL
    Seems like this seems to be an awsome browser if you want a tester i coukd test the app and give you thoughts and bugs reports
     
    LV426 likes this.
  9. caetsamuel

    caetsamuel Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    6
    Joined:
    Oct 17, 2017

    Oct 17, 2017
    6
    1
    6
    Still a work in progress, and I'm using it more as a learning experience
     
    Cyberdev likes this.
  10. Cyberdev

    Cyberdev Android Expert
    Recognized Developer
    Rank:
     #147
    Points:
    173
    Posts:
    902
    Joined:
    Sep 12, 2014

    Sep 12, 2014
    902
    279
    173
    Female
    Daily YouTuber
    Tampa, FL
    Hey i
    Hey if you ever get done or want to ever want to include it a DLC for my ctOS ROMS just let me know but hope its going swell coding is hard but not impossible to learn
     

Share This Page

Loading...