how to create a custom layout that is capable of rotating any of its child view/or nested layouts

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Sep 1, 2020, 7:49:42 PM via Website

I am having so much confusion creating custom layouts that can rotate it's child layout/views(any number of then nested). (Should I just think about rotating it's direct child only?) The closest I could find was this library: rotate-layout( github. com/rongi/rotate-layout in github), but for some reason it's not working for nested constraintLayouts.

I didn't find much resources online for extending viewGroups, and I'm having trouble understanding the very basic of things, e.g. MeasureSpec, where everyone says that it is the constraint imposed by the parent to it's children, but, is the parent the view we're extending or the viewGroup that holds the viewGroup we're extending? If the MeasureSpec is referring to the parent's specs, then would getPadding also get the padding of the parent of the ViewGroup we're extending?

If possible please answer my above confusions and give me hints to how I should go about making the kind of view I have described above.

Be the first to answer
Recommended by NextPit