V
V
vantic1312016-03-05 23:12:08
Android
vantic131, 2016-03-05 23:12:08

Android studio stretch column similar to html?

Please tell me how to create a table of several columns, in which, say, 1 or more elements have a given size, and the rest are stretched, or at least 1 is stretched, the essence is simple, for example, make a product list, where the buy button has a certain size, and the product description is stretched by the entire remaining width of the screen, I understand that you need to dig towards the gridlayout and others, but by default the columns are stretched under the inner element, how to limit the width of the column, that's the question, I'm attaching an image to make it clearer what I mean:
528043d7c05c4601adbcfa3ea8289e00.jpg
Well, or as an alternative comes to mind, div with position:absolute inside relative, on top of other objects, also could not find how to implement it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2016-03-06
@vantic131

You set a specific value for one cell, 0 for others and set the weights
android.amberfog.com/?p=328

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question