android - add scroll tabs between some layouts -


I want to add the scroll tab to an XML file. Generally I'll call it

  & lt; Android.support.v4.view.ViewPager can add xmlns such as: android = "http://schemas.android.com/apk/res/android" xmlns: tool = "http://schemas.android.com/tools "Android: id =" @ + id / pager "Android: layout_width =" match_parent "Android: layout_height =" match_parent "tool: reference =" com.example.scrollabletab. Main activity "/ & gt;  

And looks like: Enter image details here

But now I want to add this scroll tab in the middle of the scene. The center means that there is my app logo above this scroll tab, some layouts that include different text views. I also want to add some layouts below this scroll tab, which again includes different text view and layouts.

How to do this?

Enter image details here

< Div class = "post-text" itemprop = "text">

You can try this one widget:

But the general answer is: Use the actionbar with tabs:


Comments