Skip to content

Commit d1217a4

Browse files
committed
Readme updated
1 parent 2aaa4ba commit d1217a4

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

EmptyLayout/src/com/kanak/emptylayout/EmptyLayout.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public boolean isEmptyButtonShown() {
350350
* Sets if a button will be shown in the empty view
351351
* @param showEmptyButton will a button be shown in the empty view
352352
*/
353-
public void setEmptyButtonShown(boolean showEmptyButton) {
353+
public void setShowEmptyButton(boolean showEmptyButton) {
354354
this.mShowEmptyButton = showEmptyButton;
355355
}
356356

@@ -366,7 +366,7 @@ public boolean isLoadingButtonShown() {
366366
* Sets if a button will be shown in the loading view
367367
* @param showEmptyButton will a button be shown in the loading view
368368
*/
369-
public void setLoadingButtonShown(boolean showLoadingButton) {
369+
public void setShowLoadingButton(boolean showLoadingButton) {
370370
this.mShowLoadingButton = showLoadingButton;
371371
}
372372

@@ -382,7 +382,7 @@ public boolean isErrorButtonShown() {
382382
* Sets if a button will be shown in the error view
383383
* @param showEmptyButton will a button be shown in the error view
384384
*/
385-
public void setErrorButtonShown(boolean showErrorButton) {
385+
public void setShowErrorButton(boolean showErrorButton) {
386386
this.mShowErrorButton = showErrorButton;
387387
}
388388

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,20 @@ emptyLayout.setLoadingMessage("Please wait...");
5252
Some useful methods are given below
5353
* `showEmpty`
5454
* `showLoading`
55+
* `showError`
5556
* `setLoadingView`
5657
* `setEmptyView`
5758
* `setErrorView`
5859
* `setLoadingAnimation`
5960
* `setErrorMessage`
6061
* `setLoadingMessage`
6162
* `setEmptyMessage`
63+
* `setEmptyViewButtonClickListener`
64+
* `setLoadingViewButtonClickListener`
65+
* `setErrorViewButtonClickListener`
66+
* `setShowEmptyButton`
67+
* `setShowLoadingButton`
68+
* `setShowErrorButton`
6269

6370
and there is more...
6471

0 commit comments

Comments
 (0)