linearlayoutmanager Questions
4
Solved
I have a RecyclerView implemented in a fragment and I'm trying to add dividers to the code. I have the RecylcerView working as intended, but the LinearLayoutManager cannot resolve the getOrientatio...
Terrorize asked 9/1, 2017 at 23:57
8
In my fire tv app I'm using a recyclerview with horizontal layout.
Scrolling with dpad works and also items are gaining focus.
But when I hold the button it scrolls very fast because many keydo...
Dulcle asked 14/12, 2015 at 22:0
19
Solved
I have implemented a horizontal scrollable RecyclerView. My RecyclerView uses a LinearLayoutManager, and the problem I am facing is that when I try to use scrollToPosition(position) or smoothScroll...
Gleanings asked 5/4, 2016 at 12:14
9
Solved
I want my RecyclerView to scroll to the bottom when a new item is added to the list. Below is my code:
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
recyclerVi...
Idler asked 12/11, 2017 at 16:5
4
I'm using findLastCompletelyVisibleItemPosition() to determine the last visible item in my RecyclerView.
Here is a code snippet of how I'm setting up my layout:
mRecyclerView.setHasFixedSize(tru...
Wagers asked 9/5, 2016 at 10:47
4
I am working on an Android app that runs on only one devicerunning KitKat.
The smooth scrolling feature for a RecylerView I used that was working on other physical tablets and genymotion has unfor...
Warpath asked 8/12, 2016 at 4:35
5
Solved
I want to use a RecyclerView to emulate the behavior of a MultiViewPager, in particular I'd like to have the selected item at the center of the screen, including the first and the last element.
As...
Ashurbanipal asked 20/6, 2017 at 20:27
5
Solved
I am using a horizontal layout manager for my RecyclerView.
I need to make RecyclerView in the next way: when click on some item - make smoothScrool to that position and put that item in the center...
Moiety asked 16/7, 2016 at 22:15
5
I'm using a LinearSnapHelper to make items in my RecyclerView "snap" into place on the screen (my cards take up most of the screen, so I want them to snap into place and fill the screen on every sw...
Tebet asked 30/10, 2016 at 23:4
3
Solved
I have seen many types of layout managers like:
LineraLayoutManager
RecyclerView.LayoutManager
ListViewLayoutManager
etc
What actually LayoutManager is and why it is used and what are the diffe...
Condenser asked 22/7, 2019 at 19:4
0
When using RecyclerView with LinearLayoutManager and "reverseLayout" flag set to true, when notifying any item via notifyItemChanged it also calls onBindViewHolder for the first non-visible item. A...
Incriminate asked 20/2, 2020 at 10:11
1
Solved
I'm creating a carousel Horizontal RecyclerView with Zoom on focused item that is starting from the first item of the RecyclerView.
Code for custom CenterZoomLayoutManager:
public class CenterZ...
Exfoliate asked 13/9, 2018 at 16:4
1
Solved
I have a RecyclerView list of CardView items. I save CardView data to a SQLite database. The user can drag CardViews up and down in the list to change the order of the items. When the user exits th...
Sard asked 5/9, 2018 at 3:54
1
I am using a RecyclerView with a Horizontal LinearLayoutManager.
recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL,false));
For the adapter items to snap ...
Nagey asked 17/9, 2017 at 11:11
1
Solved
Tried all the related questions but it did not work :(
I am building endless scrolling with Recycler View.
PROBLEM: onScrolled method is always called without the user scrolling the screen.
And...
Chitarrone asked 9/6, 2018 at 19:19
2
I have a RecyclerView with a LinearLayoutManager that is backed by an adapter with items of different height. Is there a way to tell the RecyclerView to set the scroll position so that item X appea...
Settera asked 24/5, 2016 at 13:21
2
Solved
I customized RecyclerView by adding separate layouts for header and footer. I created constants to determine the property of header, footer and list item in the adapter class. I also created a View...
Sorel asked 16/2, 2017 at 12:43
0
I'm working with a RecyclerView and I want the clicked item to be scrolled to the top of the RecyclerView. I tried the smooth scrolling methods from RecyclerView but none of them work as I expect.
...
Titanic asked 20/10, 2017 at 14:27
2
Solved
I am trying to use RecyclerView to create a chat application. I am using a LinearLayoutManager with setReverseLayout(true).
When I am scrolled all the way to the bottom (which is the dataset star...
Fossorial asked 5/9, 2016 at 8:43
4
I have searched a lot regarding my query and none of them was useful. I have a recyclerview and some static data inside a scroll view which is inside a root parentlayout as show below.
I have set...
Unbelievable asked 23/11, 2016 at 21:31
0
I am experiencing a problem with my application. I am getting a java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder and not only on Samsung d...
Elsy asked 23/12, 2016 at 11:30
1
I have a recyclerview in my android project which displays media contents within each view. What I'm trying to achieve is that I'm able to play/pause media as I scroll up and down. I need to get th...
Phreno asked 21/5, 2016 at 14:3
3
Solved
I want to auto scroll a list item to top (firstVisible item) in my recycler view and get the view at that position, so I can highlight it, from my fragment.
So, this is the gist of my fragment co...
Hubris asked 30/10, 2015 at 18:38
2
Solved
I have a RecyclerView defined as:
<android.support.v7.widget.RecyclerView
android:id="@+id/message_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:la...
Freshen asked 15/12, 2015 at 10:35
0
I am building a relatively simple RecyclerView, using a vertical LinearLayout Manager and a DefaultItemAnimator. It would only handle adding and removing items (no animated changes, swaps, moves, e...
Nuisance asked 8/3, 2016 at 13:8
1 Next >
© 2022 - 2024 — McMap. All rights reserved.