Closed Spring1901 closed 7 years ago
Hi @Spring1901
I suggest you follow this example. If you don't use Toolbar, just keep it in layout file, don't setSupportActionBar for it and set toolbar's background to transparent.
@henrytao-me thanks very much for your answer. there is another question i want to ask . i want the tabLayout slide out the screen ,not fix on the top. i have set the attribute of "layout_scrollFlags" to "scroll".but it does't have effect.
Hi @Spring1901
Will your tabLayout show up immediately when you scroll up (like quick return with toolbar)?
yes,I already know how to do it. thanks @henrytao-me
the problem:line0,line1 don't display
because my project don't have a toorBar,so i set the status of the toorbar gone , and add a picture.(my project's head part is consist of a viewpager which used to show Advertisement and a tabLayout ). after i add the picture in xml_layout .the result is that the data can't show completely .
later i change the "SmoothViewPagerQuickReturnActivity" in you demo as the above mentioned ,the same result .
this is my xml file: