Comments (17)
I don't know exactly. This behavior is accidental. Switching the addView order you can accomplish it.
from tablefixheaders.
I tried switching the addView order, but it still does the same thing. Do you know of anywhere else that I could change some code around to achieve this?
from tablefixheaders.
I don't remember now and I don't have a computer to check it (holydays). You can check the uses of makeView().
from tablefixheaders.
I had a look around at makeView() and not to sure of how it is done. I think I will wait until you have had a look around instead of me starting to change code around. (Enjoy your holidays.)
from tablefixheaders.
Hi Brias, I had a look around makeView() and could not get it to work, could you have a look around and give me some suggestions on how to achieve this please.
from tablefixheaders.
As had previously discussed the behavior you mentioned was completely
accidental. Replace TableFixHeaders.addTableView()
with one of this
options:
The column overlaps the row
private void addTableView(View view, int row, int column) {
if (row == -1 && column == -1) {
addView(view, getChildCount() - 4);
} else if (row == -1) {
addView(view, getChildCount() - 5);
} else if (column == -1) {
addView(view, getChildCount() - 5 - rowCount);
} else {
addView(view, 0);
}
}
The row overlaps the column
private void addTableView(View view, int row, int column) {
if (row == -1 && column == -1) {
addView(view, getChildCount() - 4);
} else if (column == -1) {
addView(view, getChildCount() - 5);
} else if (row == -1) {
addView(view, getChildCount() - 5 - columnCount);
} else {
addView(view, 0);
}
}
I think you will have a problem here. The views are recycled as soon as the
cell (-1, -1) overlaps them completely. You must change the point where a
view is attached & unnatached. Add the header with / height.
from tablefixheaders.
Hey, just tried the above code where the row overlaps the column: works great.
Thanks.
from tablefixheaders.
@ashx1 Can you share your screenshot for review?
from tablefixheaders.
@ashx1 how you have achieve this behavior, i need your help?
from tablefixheaders.
Hi @SaadBilal,
If you want the column to overlap the row then you put the 1st lot of code in the method addTableView in TableFixHeaders.java, if you want the row to overlap the column then you put the 2nd lot of code in the method addTableView in TableFixHeaders.java.
from tablefixheaders.
@ashx1 Thank you for your reply, i tried that code for row and column but i am unable to achieve required behavior. I have attached two screenshot to show you what is going on and what i want to achieve. Please review that.
Screenshot 1: what is going on currently
Screenshot 2: what i want to achieve. (Please Help)
from tablefixheaders.
@SaadBilal,
Off memory, I think the colour of that cell (-1, -1) has to be transparent as well. I can't look into it until this Sunday, but I think it has to be transparent.
from tablefixheaders.
@ashx1 I have tried with transparent but unable to achieve. I am waiting for your request and dig deeply into it. Can you share your SKYPE Id?
from tablefixheaders.
@SaadBilal I haven't got a Skype Id, if you can wait until this weekend
(hopefully Sunday) I can have a look at what I have done to make it work.
On Thu, 31 Mar 2016 21:17 Saad Bilal [email protected] wrote:
@ashx1 https://github.com/ashx1 I have tried with transparent but
unable to achieve. I am waiting for your request and dig deeply into it.
Can you share your SKYPE Id?—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#23 (comment)
from tablefixheaders.
@ashx1 Alright :)
from tablefixheaders.
This is a no supported behavior but you can try to comment this line canvas.clipRect(widths[0], 0, canvas.getWidth(), canvas.getHeight());
in drawChild
. That line was added after this issue and it's an optimization to reduce overdraw pixels.
from tablefixheaders.
Thank you @BraisGabin, I have tried that and now i am close to solution.
from tablefixheaders.
Related Issues (20)
- How can i use it in a CoordinatorLayout HOT 1
- How can scroll in viewpage when columns stop scrolling HOT 4
- how to remove first column on fix hader HOT 2
- can i set header on image
- java.lang.NullPointerException: at com.inqbarna.tablefixheaders.TableFixHeaders.scrollBounds (TableFixHeaders.java:630) HOT 2
- Want to inflate more than one values in one column
- Issue with UI Thread block HOT 1
- search value in TableFixHeaders
- How to pass model array list to MatrixTableAdapter HOT 6
- How to insert data from api HOT 1
- Scroll issue when i put TableFixHeaders view inside a ScrollView/NestedScrollView HOT 2
- Text Color
- Not running in Tablet HOT 4
- Invalid content set in cell(view) during scrolling up,down or right, left...
- How to adapt the row height by context?
- How to set section header is aligned center on table? HOT 2
- Why does the table get inside the screen? HOT 5
- Android 9.0 landscape will crash
- after horizontal scrolling content get reset HOT 1
- Unable to use the lib
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 tablefixheaders.