O
O
Oleg2021-02-08 09:39:12
Android
Oleg, 2021-02-08 09:39:12

How to set the maxwidth of the central part of the NestedScrollView?

6020d688ea854234567245.png
In the figure NestedScrollView . Easily created through the wizard.
But through the wizard center to the full width.
Set the gravity center. But at the level of layot ​​properties, I don’t see how to prescribe so that the width does not grow beyond the specified one.
I see the solution at the code level. Calculate the width and programmatically assign it.

The question is, can it be easier?
ps do not offer to convert to html :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question