Here i have calculated width and height of the android phone. After calculating that, width and height of Relative layout with id rlBottom is calculated using ViewTreeObserver. A View is set to minimum height which is calculated by
temp = (screenHeight - (2 * viewHeight));
Build your project and Run,Relative layout will always be a parent bottom and doesn't come up when keyboard appears.
Note:In your manifest file,use windowSoftInputMode=adjustResize of your particular avtivity.