1<?xml version="1.0" encoding="utf-8"?> 2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:layout_width="match_parent" 5 android:layout_height="wrap_content" 6 android:orientation="vertical" 7 8 tools:context="expo.modules.devlauncher.launcher.errors.DevLauncherErrorActivity"> 9 10 <LinearLayout 11 android:id="@+id/error_main_content" 12 android:layout_width="match_parent" 13 android:layout_height="match_parent" 14 android:layout_above="@id/error_footer" 15 android:layout_marginTop="32dp" 16 android:orientation="vertical" 17 android:paddingLeft="18dp" 18 android:paddingRight="18dp" 19 20 android:weightSum="1"> 21 22 <TextView 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content" 25 android:tag="DevLauncherErrorScreen" 26 android:text="@string/dev_launcher_error_header" 27 android:textColor="@color/dev_launcher_primary" 28 android:textSize="22sp" 29 android:textStyle="bold" /> 30 31 <TextView 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:layout_marginTop="12dp" 35 android:text="@string/dev_launcher_error_details" 36 android:textColor="@color/dev_launcher_primary" 37 android:textSize="14sp" /> 38 39 <TextView 40 android:id="@+id/errorDetails" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginTop="22dp" 44 android:textColor="@color/dev_launcher_primary" 45 android:textSize="16sp" 46 android:textStyle="bold" /> 47 48 <ListView 49 android:id="@+id/error_stack" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_marginTop="10dp" 53 android:divider="@null" 54 android:dividerHeight="0dp" /> 55 </LinearLayout> 56 57 58 <LinearLayout 59 android:id="@+id/error_footer" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_alignParentBottom="true"> 63 64 <LinearLayout 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:background="@color/dev_launcher_white" 68 android:orientation="vertical" 69 android:paddingHorizontal="16dp" 70 android:paddingVertical="16dp"> 71 72 <Button 73 android:id="@+id/reloadButton" 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:backgroundTint="@color/dev_launcher_primary" 77 android:text="@string/dev_launcher_reload" 78 android:textAllCaps="false" 79 android:textColor="@color/dev_launcher_white" 80 android:textSize="14sp" 81 android:textStyle="bold" /> 82 83 <Button 84 android:id="@+id/homeButton" 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content" 87 android:backgroundTint="@color/dev_launcher_secondaryBackgroundColor" 88 android:text="@string/dev_launcher_go_to_home" 89 android:textAllCaps="false" 90 android:textColor="@color/dev_launcher_primary" 91 android:textSize="14sp" 92 android:textStyle="bold" /> 93 94 </LinearLayout> 95 96 97 </LinearLayout> 98 99 100</RelativeLayout> 101