1<?xml version="1.0" encoding="utf-8"?> 2<RelativeLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_width="match_parent" 6 android:layout_height="wrap_content" 7 android:orientation="vertical" 8 android:paddingBottom="@dimen/activity_vertical_margin" 9 android:paddingLeft="@dimen/activity_horizontal_margin" 10 android:paddingRight="@dimen/activity_horizontal_margin" 11 android:paddingTop="@dimen/activity_vertical_margin" 12 tools:context="host.exp.exponent.experience.ErrorActivity"> 13 14 <LinearLayout 15 android:layout_width="match_parent" 16 android:layout_height="match_parent" 17 android:layout_gravity="center_vertical" 18 android:layout_above="@+id/view_error_log" 19 android:gravity="center" 20 android:orientation="vertical"> 21 22 <TextView 23 android:id="@+id/error_header" 24 android:layout_width="wrap_content" 25 android:layout_height="wrap_content" 26 android:layout_centerHorizontal="true" 27 android:layout_marginTop="30dp" 28 android:text="@string/error_header" 29 android:textColor="@color/white" 30 android:textSize="24sp"/> 31 32 <TextView 33 android:id="@+id/error_message" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_centerHorizontal="true" 37 android:layout_marginTop="20dp" 38 android:layout_marginLeft="40dp" 39 android:layout_marginRight="40dp" 40 android:gravity="center" 41 android:text="@string/error_default_client" 42 android:textColor="@color/white" 43 android:textSize="16sp"/> 44 45 <LinearLayout 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:layout_below="@+id/editText" 49 android:layout_centerHorizontal="true" 50 android:layout_marginTop="140dp" 51 android:layout_marginLeft="40dp" 52 android:layout_marginRight="40dp" 53 android:weightSum="2" 54 android:gravity="center_horizontal" 55 android:orientation="horizontal"> 56 57 <host.exp.exponent.views.ExponentImageButton 58 android:id="@+id/home_button" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_weight="1" 62 android:background="@android:color/transparent" 63 android:src="@drawable/ic_home_white_36dp" 64 android:textColor="@color/colorPrimaryDark" 65 android:textSize="15sp"/> 66 67 <host.exp.exponent.views.ExponentImageButton 68 android:id="@+id/reload_button" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_weight="1" 72 android:background="@android:color/transparent" 73 android:src="@drawable/ic_refresh_white_36dp" 74 android:textColor="@color/colorPrimaryDark" 75 android:textSize="15sp"/> 76 </LinearLayout> 77 </LinearLayout> 78 79 <TextView 80 android:id="@id/view_error_log" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:layout_centerHorizontal="true" 84 android:layout_alignParentBottom="true" 85 android:paddingBottom="20dp" 86 android:paddingLeft="20dp" 87 android:paddingRight="20dp" 88 android:paddingTop="20dp" 89 android:gravity="center" 90 android:clickable="true" 91 android:text="@string/view_error_log" 92 android:textColor="@color/errorLogButton" 93 android:textSize="13sp"/> 94 95 96</RelativeLayout> 97