question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Column Weight problem

See original GitHub issue

Hi. Thanks for lib.

I using table in horizontal scroolview, on landscape screen. Because i have 9 columns.

But, i can not give it the width I want.

setColumnWeight(0, 3); setColumnWeight(1, 3); setColumnWeight(2, 3); setColumnWeight(3, 4); setColumnWeight(4, 4); setColumnWeight(5, 4); setColumnWeight(6, 4); setColumnWeight(7, 5); setColumnWeight(8, 5);

What do I have to do to make sure all the columns are visible?

screenshot_1479380963 screenshot_1479380968

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ISchwarz23commented, Nov 18, 2016

Hi @ulaslaslas,

please update to the version 2.4.1 of this library and use the TableColumnDpWidthModel. This TableColumnModel implementation allows to define absolute widths for each column in density-independent pixels.

Usage is simple as that:

TableColumnDpWidthModel tableColumnModel = new TableColumnDpWidthModel( getContext(), 9 );
tableColumnModel.setColumnWidth( 0, 200 );
// define other column widths here 
setColumnModel( tableColumnModel );

Please tell me if this fulfilled your needs now completely 😛

Best regards, Ingo

1reaction
ISchwarz23commented, Nov 18, 2016

I’m currently working on a soltion. A version 2.4.1 will be released today or latest tomorrow 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Column: The mental weight of losing weight | Columnists
Something that seems like such a simple equation, eat less plus exercise more equals weight loss, is remarkably difficult to achieve.
Read more >
How to determine the weight of a column - Explained - YouTube
Question: A concrete column has a diameter of 350 mm and a length of 2 m. If the density (mass/volume) of concrete is...
Read more >
Torres column: 8 everyday behaviors that will aid you in losing ...
If you are like me and you have a busy and productive life, you probably lack time for many of your desires, such...
Read more >
Exact solution of buckling problem of the column loaded by ...
Abstract. This work proposes the new method of investigation the buckling problem of the uniform column under the axial distribution load, which presented...
Read more >
Ask Amy: “Best of” column concerns weight gain
Dear Readers: Every year I step away from my column briefly to work on other creative projects. (Anyone interested in my personal essays...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found