Comments (3)
Hi @fankloano
You can use setSelectedPosition
to achieve this. DpadRecyclerView
will only dispatch focus after you invoke that if it already has focus.
from dpadrecyclerview.
Oooh, using recyclerview.post solved the problem and setSelectedPosition works as you said: binding.rvFullepg.post {
binding.rvFullepg.setSelectedPosition(currentProgramPosition)
}
from dpadrecyclerview.
@fankloano I'm glad you managed to get it working :)
from dpadrecyclerview.
Related Issues (20)
- Touch behavior in scrolling HOT 5
- help HOT 2
- Focus issue after touch event
- How to implement StaggeredGridLayout? HOT 5
- Update compose integration now that view-interop is fixed
- Allow skipping layout requests during scroll
- Expose ViewHolder focus state
- Add support for custom parent alignment based on ViewHolder position
- Add support for linear circular focus
- Gridrecyclerview with height 0.5 of the screen height - alignment problem (last row cut off) HOT 14
- First item of first row is smaller then all the others HOT 4
- Fast scrolling - loosing focus when having images from an url in the items HOT 21
- Scrolling issue when loading images in onBindViewHolder HOT 9
- Bug: DpadSpanSizeLookup's getSpanSize function is being called infinitely after removing an item HOT 8
- Bug: Last row not getting focused while using DpadSpanSizeLookup HOT 1
- Bug: DpadSpanSizeLookup's getSpanSize function is being called infinitely while fast scrolling HOT 19
- Focus does not leave DpadRecyclerView in some cases when using Compose HOT 1
- Do not allow focusing other rows if grids are incomplete
- how to center scroll like CenterLayoutManager in horizontal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpadrecyclerview.