O
O
Oleksiy2015-12-24 15:41:39
Android
Oleksiy, 2015-12-24 15:41:39

How to make Rubber Layout?

Is there something like css for android @media screen and (max-width: XXX px)?
To change the display of elements or blocks depending on the screen size. For example, on a large screen there are four pictures in a row, on a small one - two. Or on the big screen, one block on the left, the second on the right, and on the small one - one under the other.
How to implement such a thing?
Thank you in advance for your response.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Gamega, 2015-12-24
@xox_ua

there is of course)) read about resources in android
for different sizes, different resource folders
for different languages, times of the day and much more, different resources are used, it's pretty convenient )
again different resources + fragments

I
Ivan, 2015-12-24
@LiguidCool

Look at Twitter Bootstrap.

A
Artemych, 2015-12-26
@Artemych

I support previous commentators. Different folders in the resources are suitable for this. If you need to resize at Runtime, then you can use LayoutParams for this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question