view_error.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical" >
  6. <RelativeLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent">
  9. <TextView
  10. android:id="@+id/textViewMessage"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:layout_centerInParent="true"
  14. android:layout_marginTop="16dp"
  15. android:drawableTop="@drawable/ic_error"
  16. android:gravity="center_horizontal"
  17. android:text="@string/error_message"
  18. android:textAppearance="?android:attr/textAppearanceMedium"
  19. android:textColor="@color/gray_light" />
  20. <Button
  21. android:id="@+id/buttonError"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_gravity="center_horizontal"
  25. android:layout_below="@+id/textViewMessage"
  26. android:layout_centerHorizontal="true"
  27. android:text="@string/error_button"
  28. android:layout_marginTop="16dp" />
  29. </RelativeLayout>
  30. <TextView
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"/>
  33. </RelativeLayout>