I have a list view and I have to design a row layout to be used in adapter. The layout is like this.
First column we have an icon on left most side.
Second column we have a string of about 4-30 characters
Last column, the date with time.
I tried to design in relative layout but it gave issues like the last two columns’ strings were overlapped. I want to specify certain percentage of width to a column, if string doesn’t fit, it must start in new line (same row, with gravity as center). This is row layout, so I dont want it to be very heavy. And I dont want to hard code the width in dp.
Building on Sergey’s code (which I believe will not solve the problem completely). I have specified ratios 1/2:1/1:1/3 (for the image:string:date);