i am new to android studio,
I am trying to create a FrameLayout of specific size at certain location inside another framelayout dynamically. here is my following code,
FrameLayout parentLayout = (FrameLayout)findViewById(R.id.tile_container);
FrameLayout framelayout = new FrameLayout(this);
framelayout.setBackgroundColor(0x0000FF);
framelayout.setLayoutParams(new LinearLayout.LayoutParams(100,100);
framelayout.SetX(50)
framelayout.SetY(50)
parentLayout.addView(framelayout);
but i am not getting any layout generated can anyone please help me