Questions tagged [sectionedrecyclerviewadapter]

An Android adapter that allows a RecyclerView to be split into Sections with headers and/or footers.

62 questions
0
votes
1 answer

sectioned recycler view adapter, hide empty sections

my issue is very similar to this: https://github.com/luizgrp/SectionedRecyclerViewAdapter/issues/130 what i want to do is hide empty sections, i've tried various ways to do that, but i'm failing it constantly. I believe someone could instantly point…
0
votes
0 answers

Updating recycler view from broadcast receiver

I am learning android development and developing a todolist app. I want to add a functionality to remove items from todo list once the given time to complete them has elapsed. I am using an alarm manager to fire a broadcast receiver that removes the…
0
votes
0 answers

Class A creates 2 instances of Class B. How to access item from Class B(1) from inside class B?

I have a sectioned recycler view with 2 sections. They hold shopping list items in a recycler view, each item has a checkbox. I am using this library for sections: https://github.com/luizgrp/SectionedRecyclerViewAdapter I am trying to set an…
wilrus
  • 23
  • 1
  • 7
0
votes
1 answer

Android Firebase RecyclerView Adapter Remove Views

I am facing a Firebase RecyclerView problem where I cannot remove unwanted CardViews from my RecyclerViews. In my code I check the city's name and the guide's chosen city to match them. It populates guide's details only if the guide's city matches…
0
votes
1 answer

List each sections vertically but show items inside it horizontal with SectionedRecyclerViewAdapter

What I want to show is something like in google play. I have many product category. so I need to show it vertically, but I want the user be able to scroll product inside each category horizontal(left & right) with 2 items. I've followed this…
Chhorn Soro
  • 3,061
  • 8
  • 27
  • 43
0
votes
1 answer

ArrayList in RecyclerView using sectioned-recyclerview

Im use sectioned-recyclerview In Head only TextView and button, in Item only LinearLayout. After this code: ViewGroup mContainerParent = (ViewGroup) mainContainerArr.get(section).getParent(); if (mContainerParent != null) { …
0
votes
0 answers

How to notifyDataSetChanged to all recyclerview sections

I'm using section luizgrp sectionedrecyclerviewadapter with sections and headers , and on item select i change the text color then notifyData but it reflects only in one section , every section has a selected item colored , how can i notify the…
0
votes
2 answers

how to add new library in android studio

I want add this library in Android Studio. I added this compile io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.1.1' into build.gradle section . But when sync android studio show me this error , please click on this…
0
votes
1 answer

java.lang.ClassCastException android

I need to do two recyclerViews with sections in my android app. The first one works well, but the second one shows such error java.lang.ClassCastException: com.example.battlefield.WaysRecyclerViewAdapter.WaysItemViewHolder cannot be cast to…
0
votes
1 answer

Android SectionedRecyclerViewAdapter implement getItemId

I am using SectionedRecyclerViewAdapter from luizgrp/SectionedRecyclerViewAdapter as adapter for my RecyclerView. With RecyclerViewAdapter, if I want to uniquely identify each row, I will override this method: @Override public long getItemId( int…
0
votes
1 answer

wrong section TAG value

I'm try to remove some rows from section one and some from section two, but sectionAdapter.notifyItemRemovedFromSection(TAG, key); TAG always return the 2st section list string TAG, but I was selected row in first list here is full class…
0
votes
0 answers

How to refresh RecyclerView with SectionedRecyclerViewAdapter

I use SectionedRecyclerViewAdapter to group items in a RecyclerView. After add new partitions and/or add an item to a section I call notifyDataSetChanged but the list is not refreshed. MyRecyclerView.getAdapter().notifyDataSetChanged(); The data…
-1
votes
1 answer

Previous fragment onCreateOptionMenu is called when loading a new fragment

In my mainActivity, i have a drawer defined and will replace the mainActivity constraint layout with the selected item in the drawer (as Fragment). @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); …
-1
votes
1 answer

What are some ways to implement this layout

I have a GridLayout using RecyclerView. I need to have an interface that looks like this - Some items from the recycler view need to be displayed inside a container with rounded corners. What are some ways to implement this other than having a…
-1
votes
1 answer

How to get children of a layout manager that are not yet visible in recyclerview adapter?

I am connecting two recyclerView as you seen in the picture. one of them is sectioned recyclerView with header. (the bottom one) another one is a recyclerView that shows the headers of bottom one as tab. (the top one) I dynamically get the dataset…