Skip to content
Advertisement

HeaderListView with Horizontal Scrolling Header

I’m looking for a HeaderListView like this one: http://applidium.github.io/HeaderListView/ but instead have a header that has a horizontal scrolling ability that lists categories of my list view, like in uber eats where it comes up with stuff like: Drinks

Coke

Sprite

Pizza

Pepperoni Pizza

Cheese Pizza

In the header it will have tabs: Drinks Pizza

If you’re viewing the drinks, Drinks will be underlined, pizza will not be underlined. If you’re viewing the pizza, Pizza will be underlined, drinks will not be underlined,. You can scroll down the menu to see what you want. Can someone direct me to where it is? I need something in java please.

Thanks

Advertisement

Answer

I figured it out. This is a compilation of recycler view item move, 2 different types of items in one recycler view and navigating through recycler views like uber eats.

In a public class YourNameOfFragment extends Fragment. I put this in the onCreateView method

JavaScript

FoodItem.java

JavaScript

Header.java

JavaScript

Item.java

JavaScript

TwoTextArrayAdapter.java

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