Issue I’m using following code to create xml layout resource. <?xml version=”1.0″ encoding=”utf-8″?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”vertical”> <TextView android:id=”@+id/textView1″ android:layout_width=”0dp” android:layout_height=”@dimen/dp48″ android:clickable=”true” android:focusable=”true” android:gravity=”center” android:fontFamily=”@font/trebuchet” android:text=”@string/select_a_folder” android:textColor=”?attr/colorAccent” android:textSize=”16sp” app:layout_constraintVertical_chainStyle=”packed” app:layout_constraintBottom_toTopOf=”@+id/recyclerViewFolderList” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintTop_toTopOf=”parent” app:layout_constraintStart_toStartOf=”parent” /> <androidx.recyclerview.widget.RecyclerView android:id=”@+id/recyclerViewFolderList” android:layout_width=”0dp” android:layout_height=”wrap_content”
Continue readingTag: android-recyclerview
RecyclerView sets all the items when single data changed in database
Issue I am using LiveData to fetch 30 items from the database like this: @Query("SELECT * FROM table ORDER BY id DESC LIMIT 30") fun getLast30(): LiveData<List<Person>> Every recycler view item has a like button and I have an interface
Continue readingHow to implement 'Snap to center' feature for lists in Jetpack Compose?
Issue In EpoxyRecyclerView with Horizontal LinearLayout there is a Snap to center feature which works like, If i scroll the list with good speed, it keeps on scrolling until it slows down and rests with an item at center. And
Continue readinglist adapter with sections
Issue I already have a list adapter that works properly. But I want to divide the object in the list into sections according to the date they were created. Something like this: I found something called "sectioned recycler view" but
Continue readingWhy recycler view only show first data only?
Issue So I have 3 data on my firestore database, but when I run my app, it only show the first data only. I thought the binder will automatically read all the data and increase by itself like a loop.
Continue readingAndroidRuntime: FATAL EXCEPTION: main Caused by: java.lang.RuntimeException
Issue Lots of errors and I can’t find the solution, it’s a college project for mobile apps https://github.com/ThalesCaruso/Lista-de-Mercado enter image description here enter image description here Watched a lot of youtube tutorials but didnt work Solution You’re using implementation ‘androidx.room:room-compiler:2.5.0-beta02’
Continue readingRecyclerView GridLayoutManager: how to auto-detect span count?
Issue Using the new GridLayoutManager: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html It takes an explicit span count, so the problem now becomes: how do you know how many “spans” fit per row? This is a grid, after all. There should be as many spans as
Continue readingAndroid RecyclerView adding pagination
Issue I created a RecyclerView for my application and trying to find a way to stop huge requests, I want to get the results 10 by 10 with a progress bar. My server will send the results 10 by 10
Continue readingAndroid toolbar back arrow does nothing
Issue I don’t know why my back arrow on the toolbar does nothing, can anybody help me? I leave here the onCreate of the activity, the adapter and the xml Im using recyclerView with constraint layout here is the code
Continue readingRecyclerView ItemTouchHelper Buttons on Swipe
Issue I am trying to port some iOS functionality to Android. I intent to create a table where on swipe to the left shows 2 button: Edit and Delete. I have been playing with it and I know I am
Continue reading