-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when the cell width greater than the column width #10
Comments
Do you have the below lines on your TableViewAdapter ? If you don't have. Please check the sample TableViewAdapter
It shouldn't be necessary to call And Which version are you using ? |
Yeah,I check the code,it include that lines; |
m_nLastDx value will be '0' for first population process. So if
You can check shouldFitColumns control. If it is necessary to fit column width values, it calls at end of visible row index. Anyway, Can you try the below codes instead using
After that if you still got the same problem. Please try that;
I will check your case on my leisure time. See you |
Hi, Let's try the below codes without using any thread process.
And let me know the result. |
Can you share your TableView model with me ? I want to test your case with your model. Actually I don't have time for this now. But, I will do that at least 8 hours later. |
I upload the project to the dropbox,you can download the project and check that,Thanks!! |
Hi,did you try the sample code? |
Hello, Unfortunately, I haven't tried your code yet because of the celebration of new year. However, You can be sure that, in my first leisure time, I'll check it on. Have a nice day. |
OK,Thank you very much and wish you Happy new year!! |
Happy new year to you, too! :) |
Hi, Thanks. |
please try this: |
I have tested your codes. My first observation on your code, when I change m_iTableView.postDelayed(new Runnable() {
@Override
public void run() {
mStatusLayout.showContent();
}
}, 3000); with mStatusLayout.showContent(); It works perfectly. However, let's assume you need to above lines and don't want to change it. At that time, I realised that you modified the TableView codes. When I use the 0.8.5.1 version instead of yours, It works perfectly, even though using the above lines. If you don't want to horizontal lines of the TableView you can use
After that, you can insert a line view both your column header layout and corner layout like I do on the sample app. Well, why does your modified TableView have got this bug ? Because, on CellLayoutManager // This below lines is for populating for the first time like fetching all data to display.
// It shouldn't be worked when it is scrolling horizontally ."getLastDx() == 0"
// control for it.
} else if (m_iCellRecyclerView.getScrollState() == RecyclerView.SCROLL_STATE_IDLE &&
childLayoutManager.getLastDx() == 0) {
if (childLayoutManager.isNeedFit()) {
m_bNeedFit = true;
// all columns have been fitted.
childLayoutManager.clearNeedFit();
}
if (m_bNeedFit) {
// for the first time to populate adapter
if (m_jRowHeaderLayoutManager.findLastVisibleItemPosition() == nPosition) {
// The below line helps to change left & right value of the each column
// header views
// without using requestLayout().
m_iColumnHeaderLayoutManager.customRequestLayout();
fitWidthSize(false);
Log.e(LOG_TAG, nPosition + " fitWidthSize populating data for the first time");
m_bNeedFit = false;
}
}
} Something you did causes on this control, I strongly recommend to you use the latest version without doing any modify. |
when the tableview load the data first time,if the cell width greater than the column width,the tableview show like that :
when I call the code:
the tableview will show correct:
The text was updated successfully, but these errors were encountered: