Add layout/button_row.xml In fragment_remote_control delete TableRow and include 4 button_row. In RemoteControlFragment configure buttons in code rather than in xml