Comments (5)
Thanks for adding scroll to position in recent release. I will integrate it in code and inform you about result.
from tableview.
@evrencoskun,
Scroll to position works perfectly.
from tableview.
I have added above 2 methods in AbstractTableAdapter class of library and calling both method in Fragment onCreateView() after setting Adapter. In my case scrollColumnHeader(position) scrolls header to specific position, but scrollCell(position) does not scroll cell columns to specific position.
Can you tell me what I am doing wrong?
from tableview.
Hi @gmcodebuster,
The reason is TableView stores scroll position for Cell columns.
In CellRecyclerViewAdapter, TableView sets each cell column scroll position when before each cell row is getting visible. See below code
@Override
public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) {
super.onViewAttachedToWindow(holder);
// The below code helps to display a new attached recyclerView on exact scrolled position.
CellRowViewHolder viewHolder = (CellRowViewHolder) holder;
((ColumnLayoutManager) viewHolder.m_jRecyclerView.getLayoutManager())
.scrollToPositionWithOffset(m_iHorizontalListener.getScrollPosition(),
m_iHorizontalListener.getScrollPositionOffset());
So, below functions don't work before TableView cell is not visible on screen.
scrollCell(position);
scrollColumnHeader(position);
You can say "What is the solution on my case ?"
You need to find a way to call above codes after when all cell is visible. or You need to hack TableView source to change default values of HorizontalRecyclerViewListener
class.
or wait the newest version!
See you
from tableview.
Hi @gmcodebuster @sidharthshah,
0.8.5.4 version has been just released. With this version there are 2 helper method in TableView.
These are ;
tableView.scrollToColumnPosition(int column)
tableView.scrollToRowPosition(int row)
These methods will help your request.
Please test your issue with the newest version and let me know the result.
from tableview.
Related Issues (20)
- java.lang.IndexOutOfBoundsException in setRowHeaderItems HOT 1
- Help HOT 1
- Set a default void implementation on Cell, HeaderCell, RowCell event listeners
- onCellClicked returns correct cellView but incorrect row after sorting HOT 4
- cellviewholder with edit Text is not working after scroll
- How to color the whole row when selecting a cell??
- Column header not match cell when to reload HOT 1
- Forcing sticky column header
- Wrong number of cells in a row crashes
- setColumnWidth function is buggy when implemented in dialog fragment
- I wonder how to exchange rows and columns
- Implement performClick in cellRecyclerView and etc
- Multiline text in cells HOT 1
- how to filter in rowheader / cornerview
- while building -Failed to resolve: com.evrencoskun.library:tableview:0.8.9.4 HOT 2
- Help needed for configurating in build.gradle.kts
- The column width follows the adapter that was first opened
- add(Cell) causing mis alignment align
- I have created the table and i have put an edit text and some text views when i try to click the edit text to write it goes to the first item in the table
- Add Datagrid Support for Kotlin Multiplatform
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 tableview.