I am trying to set the width and height of 2 frame layouts which are the containers for 2 fragments, both being children of a Linear Layout.
However whenever I set width and height of the layout with
frameLayout.setLayoutParams(new FrameLayout.LayoutParams(100,100);
it is resulting in a class cast Exception
java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams