Skip to content

Commit

Permalink
Merge pull request #14 from shineceo97/master
Browse files Browse the repository at this point in the history
Demo app을 좀더 fancy하게 만들었습니다.
  • Loading branch information
shinplest authored Oct 22, 2019
2 parents 460cb1d + 4d43240 commit 1455b5e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

🍀 Easy way to implement 404 screens for android.

<img src="https://user-images.githubusercontent.com/3215313/66920434-3ba87a80-f05e-11e9-81a1-38fa12b211be.gif" width="40%">
<img src="Readme_src/testgif.gif" width="40%">


## Including in your project
Expand Down
Binary file added Readme_src/testgif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/src/main/java/com/bluecat/view404Demo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class MainActivity : AppCompatActivity() {

showError.setOnClickListener {
if (view404 == null) {
view404 = View404(this, view404CustomLayout?.inflate()!!)
view404 = View404(this, R.layout.layout_404)
Toast.makeText(this, "shown", Toast.LENGTH_SHORT).show()

errorLayout.show404(view404!!, R.anim.view404_fade_in_default)
Expand Down
Binary file added app/src/main/res/drawable/image404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions app/src/main/res/layout/layout_404.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
android:layout_height="match_parent"
android:background="@color/white">

<TextView
android:id="@+id/text_404"

<ImageView
android:id="@+id/image_404"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="There is no results!"
android:textSize="16sp"
android:textStyle="bold" />
android:src="@drawable/image404"
android:layout_centerInParent="true"/>

</RelativeLayout>

0 comments on commit 1455b5e

Please sign in to comment.