This is the code I am using and it is not working:
setting the view's layout_weight="1" would do the trick.!
layout_weight="1"