Click here to Skip to main content
15,902,840 members

Comments by grrigore (Top 3 by date)

grrigore 15-Dec-17 14:58pm View    
Sorry, for the late reply. I thought about setting equal column's width. I just wanted to know if there is a solution to enlarge the width as much as needed.

Thanks for the answers! :)
grrigore 13-Dec-17 12:56pm View    
Sorry for the confusion I created.
I mean I have like three columns let's say column1, column2, column3.

In the xml code I'll have a LinearLayout with a horizontal orientation in which I define something like a header. In this LinearLayout I'll have 3 textViews each containing a text with column1, column2 and so on..

So the layout will look like:

Column1 | Column2 | Column3
ListView with item composed by three textView.

After this LinearLayout I'll have a ListView with the same amount of columns as I said below.

I updated two xml files here https://github.com/grrigore/ListView

Now, I don't know how long the text stored in the ListView's items will be and I want each text having different lengths to be displayed fully.

Hope it's clear!


grrigore 13-Dec-17 5:38am View    
That has nothing to do with the first column. I'm sorry I didn't make it clear. I'll have an n number of columns with different text with different lengths. So, in my opinion I can't really set a width.