In Android, I have a RelativeLayout named A. It has a view named B in the top of A. It has a view named C in the bottom of A.
Code I have so far:
RelativeLayout A = new RelativeLayout(context);
View B = new View(context);
LayoutParams paramsB = new LayoutParams(LayoutParams.FILL_PARENT, 40);
paramsB.addRule(RelativeLayout.ALIGN_PARENT_TOP);
View C = new View(context);
LayoutParams paramsC = new LayoutParams(LayoutParams.FILL_PARENT, 40);
paramsC.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
A.addView(B,paramsB);
A.addView(C,paramsC);
How do I adjust the RelativeLayout size when the keyboard shows?