set a layout_height in dps instead of wrap_content this could differ in different display sizes but if you wanna set a height dynamically
getApplication.getResources().getDisplayMetrics()
get your current height and calculate the height according to that