N
N
ngapp2022-03-26 17:41:53
XML
ngapp, 2022-03-26 17:41:53

How to correctly implement such a view when the text is inside a rectangle?

Hello everyone, please tell me how to correctly implement such a design in android studio, preferably using constraint layout?
I want the News RecyclerView to be wrapped in a rectangle with shadows around it.
Is it ok to nest another constraint layout inside a constraint layout?
623f25e6be621316315523.png

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2022-03-26
@hypnogaja

You need to put the RecyclerView in a FrameLayout with elevation set.

Is it ok to nest another constraint layout inside a constraint layout?

No. ConstraintLayout was created to build a flat view hierarchy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question