Add the following attribute to the view:
tools:ignore="InconsistentLayout"
and add the namespace prefix declaration
xmlns:tools="http://schemas.android.com/tools"
to the view element or one of its parents.
Further reading: http://developer.android.com/tools/debugging/improving-w-lint.html#src