-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
100 additions
and
96 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,34 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/badNetworkRootView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/wall" | ||
android:focusable="true" | ||
android:foreground="?android:selectableItemBackground"> | ||
android:foreground="?android:selectableItemBackground" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_centerInParent="true" | ||
android:orientation="vertical"> | ||
|
||
<ImageView | ||
android:layout_width="@dimen/dp_200" | ||
android:layout_height="@dimen/dp_100" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@drawable/bad_network_image" /> | ||
<com.airbnb.lottie.LottieAnimationView | ||
android:layout_width="@dimen/dp_200" | ||
android:layout_height="@dimen/dp_200" | ||
android:layout_gravity="center" | ||
app:lottie_autoPlay="true" | ||
app:lottie_loop="true" | ||
app:lottie_rawRes="@raw/play_error" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="@dimen/dp_20" | ||
android:layout_marginBottom="@dimen/dp_20" | ||
android:text="@string/bad_network_view_tip" | ||
android:textColor="@color/secondary_text" | ||
android:textSize="@dimen/sp_13" /> | ||
|
||
</LinearLayout> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="@dimen/dp_20" | ||
android:layout_marginBottom="@dimen/dp_20" | ||
android:text="@string/bad_network_view_tip" | ||
android:textColor="@color/secondary_text" | ||
android:textSize="@dimen/sp_13" /> | ||
|
||
</RelativeLayout> | ||
</LinearLayout> |
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 |
---|---|---|
@@ -1,33 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/wall"> | ||
android:background="@color/wall" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_centerInParent="true" | ||
android:orientation="vertical"> | ||
|
||
<ImageView | ||
android:layout_width="@dimen/dp_200" | ||
android:layout_height="@dimen/dp_100" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@drawable/bad_loading" /> | ||
<com.airbnb.lottie.LottieAnimationView | ||
android:layout_width="@dimen/dp_200" | ||
android:layout_height="@dimen/dp_200" | ||
android:layout_gravity="center" | ||
app:lottie_autoPlay="true" | ||
app:lottie_loop="true" | ||
app:lottie_rawRes="@raw/play_error" /> | ||
|
||
<TextView | ||
android:id="@+id/loadErrorText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="@dimen/dp_20" | ||
android:layout_marginBottom="@dimen/dp_20" | ||
android:textColor="@color/secondary_text" | ||
android:textSize="@dimen/sp_13" | ||
tools:text="@string/failed_load_data" /> | ||
|
||
</LinearLayout> | ||
<TextView | ||
android:id="@+id/loadErrorText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="@dimen/dp_20" | ||
android:layout_marginBottom="@dimen/dp_20" | ||
android:textColor="@color/secondary_text" | ||
android:textSize="@dimen/sp_13" | ||
tools:text="@string/failed_load_data" /> | ||
|
||
</RelativeLayout> | ||
</LinearLayout> |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ProgressBar xmlns:android="http://schemas.android.com/apk/res/android" | ||
<com.airbnb.lottie.LottieAnimationView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/loading" | ||
android:layout_width="@dimen/dp_200" | ||
android:layout_height="@dimen/dp_110" | ||
android:layout_height="@dimen/dp_200" | ||
android:layout_gravity="center" | ||
android:indeterminate="true" | ||
android:indeterminateDrawable="@drawable/loading_animation" | ||
android:indeterminateTintMode="src_atop" /> | ||
app:lottie_autoPlay="true" | ||
app:lottie_loop="true" | ||
app:lottie_rawRes="@raw/play_load" /> |
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 |
---|---|---|
@@ -1,33 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/wall"> | ||
android:layout_gravity="center" | ||
android:background="@color/wall" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_centerInParent="true" | ||
android:orientation="vertical"> | ||
|
||
<ImageView | ||
android:layout_width="@dimen/dp_200" | ||
android:layout_height="@dimen/dp_100" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@drawable/no_content_image" /> | ||
<com.airbnb.lottie.LottieAnimationView | ||
android:layout_width="@dimen/dp_200" | ||
android:layout_height="@dimen/dp_200" | ||
android:layout_gravity="center" | ||
app:lottie_autoPlay="true" | ||
app:lottie_loop="true" | ||
app:lottie_rawRes="@raw/play_no_data" /> | ||
|
||
<TextView | ||
android:id="@+id/noContentText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="@dimen/dp_20" | ||
android:layout_marginBottom="@dimen/dp_20" | ||
android:textColor="@color/secondary_text" | ||
android:textSize="@dimen/sp_13" | ||
tools:text="没有更多内容了" /> | ||
|
||
</LinearLayout> | ||
<TextView | ||
android:id="@+id/noContentText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="@dimen/dp_20" | ||
android:layout_marginBottom="@dimen/dp_20" | ||
android:textColor="@color/secondary_text" | ||
android:textSize="@dimen/sp_13" | ||
tools:text="没有更多内容了" /> | ||
|
||
</RelativeLayout> | ||
</LinearLayout> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.