Issue I am trying to design a RecyclerView along with Firestore, which will display the list of customers, but I want to have a "add new customer" option as the first item of the recycler view, something similar to WhatsApp
Continue readingTag: android-recyclerview
Refactoring. Loading data in RecyclerView with MutableState from ViewModel
Issue I have sealed class State and I need to load data from data class Loaded<T> to RecyclerView in Fragment. How to correctly observe state in fragment and load it to RecyclerView? The main problem, that data is generic. sealed
Continue readingRemove Child view if Parent has empty child in Expandable list view Kotlin
Issue Adapter Class —————— class FilterByTypeExpandableListAdapter(val filterByData: (FilterByItemDataModel) -> Unit) : BaseExpandableListAdapter() { private lateinit var parentList: ArrayList<String> private lateinit var childList: HashMap<String, ArrayList<String>> override fun getGroupCount(): Int { return parentList.size } override fun getChildrenCount(groupPosition: Int): Int { val childCount:
Continue readingCan't retrieve data from firebase reatime database in recyclerview. Kotlin android studio
Issue I am making a chatting applicatio. and want to show all people in recycler view of an activity, but I can’t get people information from app. I had made a node named "USER" in this I had made a
Continue readingHow to set enable or disable view in RecyclerView Adapter Android
Issue In my application I want use Recyclerview and show some data from server. Server send to me hours and I should check now hour, if server time less than now time I should set alpha for this. I write
Continue readingHow to Modify Only First Nested RecyclerView (child) element at Position 0 of Parent RecyclerView?
Issue I have parentRecyclerview that includes a nestedRecyclerview. nestedRecyclerView lists several items: (Apple, Banana, Pear). I want to bold the first item (apple) of this nestedRecyclerview like so: **Apple** Banana Pear ——- Apple Banana Pear ——- Apple Banana Pear I
Continue readingHow to prevent items in RecyclerView from jumping when swiping and returning an item?
Issue I have a RecyclerView where I want to allow a user to swipe an item to the left or right for an action, but then have the item return. I implemented a solution found here, which works well. Currently,
Continue readingWhy is my RecyclerView showing the list duplicated?
Issue I have an Activity with a RecyclerView that gets a list of objects from my Fireabase Database. Until this point everything works as expected. On the adapter I have a button do delete one object. This button deletes the
Continue readingHow to set RecyclerView Max Height
Issue I want to set Max Height of RecylerView.I am able to set max height using below code.Below code makes height 60% of current screen. DisplayMetrics displaymetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(displaymetrics); int a = (displaymetrics.heightPixels * 60) / 100; recyclerview1.getLayoutParams().height
Continue readingAndroid: Creating RecyclerView programmatically won't work
Issue I have a RecyclerView in the xml like this: <LinearLayout android:id="@+id/llTestMenuMain" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/gradient" android:orientation="vertical"> <androidx.recyclerview.widget.RecyclerView android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone" android:id="@+id/rv" /> </LinearLayout> and using it to show a dynamic list of buttons like this: int buttonFontSize = 20; RecyclerView
Continue reading