android-recyclerview

Is it possible to restrict specific rows in FlexboxLayoutManager of RecyclerView?

回眸只為那壹抹淺笑 提交于 2019-12-12 17:46:16
问题 Background I need to create a UI of a details screen, which includes various fields, in a list fashion. This is why I chose to use RecyclerView, because there could be a lot of fields and I don't want that all views will be inflated from start. The problem in one of the rows, I actually have to put tags. The row has a title like most of the other rows, and might have an icon on the right like most of them, yet the real content is the tags themselves. They wrap if there is no more space.

v7 RecyclerView NullPointerException AccessibilityDelegateCompat.getBridge()

两盒软妹~` 提交于 2019-12-12 16:25:46
问题 While running my recyclerview list fragment i am getting this error java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.support.v4.view.AccessibilityDelegateCompat.getBridge()' on a null object reference at android.support.v4.view.ViewCompat$ICSViewCompatImpl.setAccessibilityDelegate(ViewCompat.java:923) at android.support.v4.view.ViewCompat.setAccessibilityDelegate(ViewCompat.java:1343) at android.support.v7.widget.RecyclerView$Recycler

Fresco: Images dissapear after scrolling RecylcerView

旧街凉风 提交于 2019-12-12 16:05:07
问题 I have a Horizontal RecyclerView: each item has an image loaded into it using the Facebook Fresco image library. However, while the correct image loads initially as it is scrolled a bit onto the screen, it disappears when the RecyclerView is scrolled further. In addition, there are issues where scrolling back and forth puts the wrong image in the wrong item (I assume this is an issue with recycling the viewholders). That said, the text you can see overlaying the items in the below screen shot

Remove RecyclerView FooterView

风流意气都作罢 提交于 2019-12-12 15:16:17
问题 I'm downloading data from an external db and populate arrays when the user scrolls down. I'm showing a footerview (loadmoreview) while the data is being downloaded. Where I'm currently stuck at is removing this footerview when the user got to the end of the list aka there is no more data to download. Download: private void DownloadUsersClassic(final String start, final String finish) { loadingMore = true; Log.i("DownloadUsersClassic", "started"); StringRequest postReq = new StringRequest

Why does my RecyclerView with ItemTouchHelper stop dragging after only one item, after overriding getItemViewType()?

依然范特西╮ 提交于 2019-12-12 14:53:29
问题 I have a simple RecyclerView that uses ItemTouchHelper to both swipe and drag items. Everything worked fine until I needed to style the first and last items differently, so I needed to override the getItemViewType(int p) function in the adapter. After I did, the drag functionality stopped being fluent and always dropped the items after moving only one position up/down. This is my RecyclerView Adapter: public class CurrentStopsAdapter extends RecyclerView.Adapter<CurrentStopsAdapter.ViewHolder

Horizontal Recycler view with left and right arrow Indicators

余生长醉 提交于 2019-12-12 14:28:51
问题 I am trying to implement a horizontal recycleview with right and left arrow indicators. So what happens is if one clicks the right arrow next item should appear and if one clicks the left arrow the previous item should appear and also at the end of the list the left arrow should disappear. I have no Idea how ti implement this. can someone help me out? Below is my Horizontal Recyclerview adapter. public class DialogRecyclerViewAdapter extends RecyclerView.Adapter<DialogRecyclerViewAdapter

Weird Animation Comes For RecyclerView Last Item

孤人 提交于 2019-12-12 14:05:16
问题 I have two views in my RecyclerView single item , two RelativeLayout s, at some point I am flipping both RelativeLayouts , I am rotating the LayoutA from 0 to 180 degree, and the same time I does rotating the LayoutB from -180 to 0 , so will get a flipping feel. It works perfect, but when there is no space in screen (ex: for the last item of RecyclerView ) then I am getting the weird effect, before starting this flip Animation LayoutB(which is hidden initially) expands and hides then

How to scroll Recyclerview inside CollapsingToolbarLayout

感情迁移 提交于 2019-12-12 13:13:29
问题 I have recyclerview inside CollapsingToolbarLayout and I want it to be scrollable, but it is not. When I scroll, appbar is scrolling but not recyclerview. I tried different things, but it doesn't work. Here's my code: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/caves_content" android:layout_width="match_parent" android:layout_height="match_parent" android

Filter in FirebaseRecyclerViewAdapter

烈酒焚心 提交于 2019-12-12 12:36:02
问题 On that question ( how to implement a SetOnItemClickListener FirebaseRecyclerViewAdapter ) I learned how to use the FirebaseRecyclerViewAdapter to get the click of recycler view, perfect. Now I need to filter RecyclerView items made with the FirebaseRecyclerViewAdapter. In my business rule listo of the items and the user can filter them. If it was manual, a list adding the adapter I know, but as the FirebaseRecyclerViewAdapter is responsible to prepare / update the list, someone has a

Items not showing up in RecycleView from Room database

…衆ロ難τιáo~ 提交于 2019-12-12 12:28:07
问题 After previous debugging I've asserted that my database is indeed working correctly however even though it appears although I've set up the ReycleViewAdapter correctly the data is not displaying. I connect to my database in my main activity and pass the information to my fragment using an interface. This List<GlobalLists> data is then passed as a parameter to my Adapter for use in the onBind method; previously I was presenting this data in a list view but when I wanted live updates I had to