-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added error template. Use <include layout="@layout/error_template"> t…
…o use it.
- Loading branch information
1 parent
fa4907e
commit 1f5ea5d
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<ImageButton | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:src="@drawable/ic_refresh" | ||
android:background="?android:selectableItemBackground" | ||
android:layout_gravity="center"/> | ||
|
||
<TextView | ||
android:id="@+id/error_msg" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
tools:text="Error loading the stuff, tap to retry" | ||
android:textAppearance="?android:textAppearanceMedium" | ||
android:layout_gravity="center_horizontal"/> | ||
|
||
<TextView | ||
android:layout_marginTop="8dp" | ||
android:id="@+id/error_hint" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
tools:text="The error loading the stuff might be caused by the thing that happened. Maybe you should try doing the thing with the stuff and it might fix it." | ||
android:layout_gravity="center_horizontal"/> | ||
</LinearLayout> |