Fixed the emptyview problem by wrapping with another relative layout.