ISchwarz23 / SortableTableView

An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
Apache License 2.0
1.05k stars 237 forks source link

Can the table fit to the specified view without expanding to scroll in view? #165

Open aldocano opened 6 years ago

aldocano commented 6 years ago

I need to create a table but i dont need the table to be scrollable in the view, but i need that the table fits the specified width, height ?

aldocano commented 6 years ago

Also can you suggest me on how to display this type of json ? https://pastebin.com/JHzGiUUL

ISchwarz23 commented 6 years ago

Hi @aldocano,

for the width it is the default behavior to be not scrollable. If you want to have the height fixed, you can use either a fixed height value (e.g. 200dp) or a relative height (like MATCH_PARENT). If the content is bigger than the parent, the table will make the content scrollable.

Best regards, Ingo

ISchwarz23 commented 6 years ago

Regarding your question about showing the sent json data inside the table:

Of cause it is possible to show it in the table. You can also add some custom styling to it. But I don't think it makes sense to clarify this here, as it is a very project specific question. If you need support please give me some information about how I should get in direct contact with you.