I\'ve got a view that is effectively is a button. Here is its XML layout (add_new.xml)
I don't think this is a bug.. Just use GONE to make the empty space disappear. CSS does the same thing. Try display: block vs visibility: hidden.
display: block
visibility: hidden