setMargins method is not working on custom ViewGroup
I am working on a project where my portion of work is to create a sliding layout on main screen which will partially appear at bottom when the app will start and we can scroll that layout. And then I have to add child views inside of it which will be cards. Now for that I have created a custom ViewGroup and I will add them programmatically. I have succeed in making most of the portion of the task. I have created a custom FrameLayout for sliding layout. Then I used it and added in XML. <?xml version="1.0" encoding="utf-8"?> <com.dhrumil.airhockey.OverflowView xmlns:android="http://schemas