From 1cdaa1a1bc1dbac37fbfcdaf6bc1ae45dfc8222c Mon Sep 17 00:00:00 2001 From: Rajan Maurya Date: Thu, 7 Nov 2019 20:25:38 +0530 Subject: [PATCH] Fix: Readme formatting --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fa583d4..20ee936 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,8 @@ class SweetErrorInActivity : AppCompatActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_sweet_error) - val layoutError = findViewById(R.id.layoutError); - val llSweet = findViewById(R.id.llSweet); // It can be any child of your xml like Relativelayout, RecyclerView etc, as we defined in above xml. + val layoutError = findViewById(R.id.layoutError) + val llSweet = findViewById(R.id.llSweet) // It can be any child of your xml like RelativeLayout, RecyclerView etc, as we defined in above xml. sweetUIErrorHandler = SweetUIErrorHandler(this, findViewById(android.R.id.content)) @@ -100,7 +100,7 @@ class SweetErrorInActivity : AppCompatActivity() { // layoutError UI to visible. It will handle everything. sweetUIErrorHandler.showSweetEmptyUI(getString(R.string.sweets), getString(R.string.sweet), R.drawable.ic_adb_black_24dp, - llSweet, layoutError); + llSweet, layoutError) # Empty UI (1.2) @@ -108,30 +108,30 @@ class SweetErrorInActivity : AppCompatActivity() { // and your child view that you want hide and layoutError UI to visible. It will handle everything. // See 2nd screenshot above as an example sweetUIErrorHandler.showSweetEmptyUI(getString(R.string.sweets), R.drawable.ic_adb_black_24dp, - llSweet, layoutError); + llSweet, layoutError) # Error UI (1.1) // Need to pass the feature name in which error occured and // your child view that you want hide and layoutError UI to visible. It will handle everything. - sweetUIErrorHandler.showSweetErrorUI(getString(R.string.sweets), llSweet, layoutError); + sweetUIErrorHandler.showSweetErrorUI(getString(R.string.sweets), llSweet, layoutError) # Error UI (1.2) // Need to pass the feature name in which error occured and image that you want to show like // bad internet connection image etc. // your child view that you want hide and layoutError UI to visible. It will handle everything. - sweetUIErrorHandler.showSweetErrorUI(getString(R.string.sweets), R.drawable.ic_no_network llSweet, layoutError); + sweetUIErrorHandler.showSweetErrorUI(getString(R.string.sweets), R.drawable.ic_no_network llSweet, layoutError) // Use this button click to refresh UI if any error occured or any Network issue occured. - Button btnTryAgain = findViewById(R.id.btn_try_again); + val btnTryAgain = findViewById