diff --git a/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java b/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java
index 245acae28b..a69b32788d 100644
--- a/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java
+++ b/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/MainActivity.java
@@ -76,7 +76,7 @@ public class MainActivity extends AppCompatActivity
Throwable cause = e.getCause();
while (cause != null) {
if (cause instanceof DynamiteModule.LoadingException) {
- setContentView(R.layout.cast_context_error_message_layout);
+ setContentView(R.layout.cast_context_error);
return;
}
cause = cause.getCause();
diff --git a/demos/cast/src/main/res/layout/cast_context_error_message_layout.xml b/demos/cast/src/main/res/layout/cast_context_error.xml
similarity index 77%
rename from demos/cast/src/main/res/layout/cast_context_error_message_layout.xml
rename to demos/cast/src/main/res/layout/cast_context_error.xml
index 6d3260de38..0b3fdb63d2 100644
--- a/demos/cast/src/main/res/layout/cast_context_error_message_layout.xml
+++ b/demos/cast/src/main/res/layout/cast_context_error.xml
@@ -13,17 +13,10 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-
-
-
-
diff --git a/demos/cast/src/main/res/layout/main_activity.xml b/demos/cast/src/main/res/layout/main_activity.xml
index 89b6b1868d..98efe2095e 100644
--- a/demos/cast/src/main/res/layout/main_activity.xml
+++ b/demos/cast/src/main/res/layout/main_activity.xml
@@ -19,20 +19,25 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true">
+
+
+ android:layout_weight="1">
+
+
+
+
+
diff --git a/demos/cast/src/main/res/layout/sample_list.xml b/demos/cast/src/main/res/layout/sample_list.xml
index 910db9e058..183c74eb3a 100644
--- a/demos/cast/src/main/res/layout/sample_list.xml
+++ b/demos/cast/src/main/res/layout/sample_list.xml
@@ -14,7 +14,7 @@
limitations under the License.
-->