Add a relative layout inside of your framelayout and add components in that relativelayout
EDIT with sample
FrameLayout fr = ..... // get your layout here.
RelativeLayout mRel = new RelativeLayout(your_activity_context);
RelativeLayout.LayoutParams mParams = mRel.getLayoutParams();
Button mBtn = new Button(this); // Component you want to add at BOTTOM RIGHT
mParams.addRule(RelativeLayout.LayoutParams.ALIGN_PARENT_BOTTOM | RelativeLayout.LayoutParams.ALIGN_PARENT_RIGHT);
mBtn.setLayoutParams(mParams);
mRel.add(mBtn);
fr.add(mRel);
Note :- There will be some minor change in the code if you add this code in your activity. because I wrote this here only. Not tested. But this should work.