Android SearchView in Toolbar

Making a LinearLayout act like an Button

What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?