Skip to content
Advertisement

How to increase tab height in xml without changing position. Also viewpager goes behind tab layout

Please help me. I have a tab layout and a viewpager. I have 2 problems. I want to decrease the height of tablayout. Also while scrolling(a list view in the page) as the viewpager is behind tab layout , the tab layout hides some elements of the list. Please help me solve the problem!!!

The problem can be resolved but i dont know how. Please hep me soon.I have tried many ways but nothing solved it. Also send the entire corrected code as answer If i just set the layoutheight of the tab layout… this happens… See there is a white line below the bottom grey color tablayout

See there is a white line below the bottom grey color tablayout

JavaScript

Advertisement

Answer

you can use hardcode value of height as like 20dp etc as much you require. also move your view pager upside appbar layout and use this code

JavaScript

it means you are using this area to add some layout etc.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement