How i can see long layout in preview in Android Studio

I found another & pretty cool solution. It’s not about size of the layout in preview.
You can simulate scrolling instead, to see the hidden content.

Use with tools, as it has influence only in preview. Then increase/decrease value for “scroll”.

<YourRootViewOfAnyType
xmlns:tools="http://schemas.android.com/tools"
...
tools:layout_marginTop="-200dp"
...
>

</YourRootViewOfAnyType>

Leave a Comment