Skip to content

Commit aac2a91

Browse files
committed
updated no network view
1 parent 56a7e0a commit aac2a91

File tree

3 files changed

+63
-37
lines changed

3 files changed

+63
-37
lines changed

thepeer-android/src/main/res/layout/retry_view.xml

Lines changed: 59 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,70 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
xmlns:tools="http://schemas.android.com/tools"
55
android:id="@+id/retry_view"
6-
android:background="@color/unclearWhite"
76
android:layout_width="match_parent"
8-
android:layout_height="match_parent">
7+
android:layout_height="match_parent"
8+
android:background="@color/unclearWhite">
99

10-
<TextView
11-
android:id="@+id/retry_button"
12-
android:layout_width="wrap_content"
13-
android:layout_height="wrap_content"
14-
android:layout_marginTop="24dp"
15-
android:text="@string/retry"
16-
android:textColor="@color/colorPrimary"
17-
app:layout_constraintEnd_toEndOf="@+id/textView"
18-
app:layout_constraintStart_toStartOf="@+id/textView"
19-
app:layout_constraintTop_toBottomOf="@+id/textView" />
20-
21-
<TextView
22-
android:id="@+id/textView"
23-
android:layout_width="wrap_content"
10+
<androidx.constraintlayout.widget.ConstraintLayout
11+
android:layout_width="match_parent"
2412
android:layout_height="wrap_content"
25-
android:text="@string/retry_text"
2613
app:layout_constraintBottom_toBottomOf="parent"
27-
app:layout_constraintEnd_toEndOf="parent"
28-
app:layout_constraintStart_toStartOf="parent"
29-
app:layout_constraintTop_toTopOf="parent"
30-
app:layout_constraintVertical_bias="0.5" />
14+
app:layout_constraintTop_toTopOf="parent">
15+
16+
<TextView
17+
android:id="@+id/retry_button"
18+
android:layout_width="wrap_content"
19+
android:layout_height="wrap_content"
20+
android:layout_marginTop="16dp"
21+
android:text="@string/retry"
22+
android:textColor="@android:color/black"
23+
android:textSize="32sp"
24+
android:textStyle="bold"
25+
app:layout_constraintEnd_toEndOf="@+id/textView"
26+
app:layout_constraintStart_toStartOf="@+id/textView"
27+
app:layout_constraintTop_toBottomOf="@+id/textView" />
3128

29+
<TextView
30+
android:id="@+id/textView"
31+
android:layout_width="wrap_content"
32+
android:layout_height="wrap_content"
33+
android:layout_marginTop="32dp"
34+
android:text="@string/retry_text"
35+
android:textSize="15sp"
36+
android:textColor="@color/textLight"
37+
app:layout_constraintEnd_toEndOf="@+id/imageView2"
38+
app:layout_constraintStart_toStartOf="@+id/imageView2"
39+
app:layout_constraintTop_toBottomOf="@+id/imageView2" />
40+
41+
<TextView
42+
android:id="@+id/textView1"
43+
android:layout_width="0dp"
44+
android:layout_height="wrap_content"
45+
android:layout_marginStart="32dp"
46+
android:layout_marginTop="16dp"
47+
android:layout_marginEnd="32dp"
48+
android:gravity="center"
49+
android:textSize="15sp"
50+
android:textColor="@color/textLight"
51+
android:text="@string/retry_text_1"
52+
android:textAlignment="center"
53+
app:layout_constraintBottom_toBottomOf="parent"
54+
app:layout_constraintEnd_toEndOf="parent"
55+
app:layout_constraintStart_toStartOf="parent"
56+
app:layout_constraintTop_toBottomOf="@+id/retry_button" />
57+
58+
59+
60+
<ImageView
61+
android:id="@+id/imageView2"
62+
android:layout_width="50dp"
63+
android:layout_height="50dp"
64+
android:scaleType="fitCenter"
65+
app:layout_constraintEnd_toEndOf="parent"
66+
app:layout_constraintStart_toStartOf="parent"
67+
app:layout_constraintTop_toTopOf="parent"
68+
app:srcCompat="@drawable/warning" />
69+
</androidx.constraintlayout.widget.ConstraintLayout>
3270
<ImageView
3371
android:id="@+id/close_btn"
3472
android:layout_width="wrap_content"
@@ -38,17 +76,4 @@
3876
app:layout_constraintEnd_toEndOf="parent"
3977
app:layout_constraintTop_toTopOf="parent"
4078
app:srcCompat="@drawable/close_icon" />
41-
42-
<ImageView
43-
android:id="@+id/imageView2"
44-
android:layout_width="80dp"
45-
android:layout_height="80dp"
46-
android:layout_marginBottom="16dp"
47-
android:scaleType="fitCenter"
48-
app:layout_constraintBottom_toTopOf="@+id/textView"
49-
app:layout_constraintEnd_toEndOf="parent"
50-
app:layout_constraintHorizontal_bias="0.498"
51-
app:layout_constraintStart_toStartOf="parent"
52-
app:srcCompat="@drawable/warning" />
53-
5479
</androidx.constraintlayout.widget.ConstraintLayout>

thepeer-android/src/main/res/values/colors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<color name="lightGray">#43979797</color>
1010
<color name="unclearWhite">#F7FCFF</color>
11-
<color name="textLight">#727EA3</color>
11+
<color name="textLight">#586283</color>
1212

1313
<color name="disabledButtonColor">#7AA8EE</color>
1414
<color name="environmentColor">#DB3838</color>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="retry_text">Oops, Check your internet connection and Retry</string>
4-
<string name="retry">Retry</string>
3+
<string name="retry_text">Something went wrong</string>
4+
<string name="retry_text_1">Something went wrong trying to load the Webview. Please try again</string>
5+
<string name="retry">Try again</string>
56
</resources>

0 commit comments

Comments
 (0)