I don't know how they did it but I know how I would do it: stop fighting Android and work with it. "Issue 1" is a classic example of someone trying to have a lot of control over their layout and ultimately creating a lot of work for themselves. Instead of trying to lay things out exactly, use the built in layout managers in Android. In this example one could use a LinearLayout to stack items one below the other, ensuring the "Connect with Facebook" button would never overlap the text above it.