Skip to content

Commit

Permalink
Useful links added
Browse files Browse the repository at this point in the history
  • Loading branch information
alamkanak committed Oct 7, 2013
1 parent 0d5a947 commit 3d11a8a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@ Screenshots

Usage
-----
1. Import the library project into your workspace
2. In the `onCreate` event of your activity use the following code.
1. Import the [library project](https://github.com/alamkanak/Android-Empty-Layout/tree/master/EmptyLayout) into your workspace.
2. Use the imported [project as a library](http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject) for your project.
3. In the `onCreate` event of your activity use the following code.

```java
EmptyLayout emptyLayout = new EmptyLayout(this, getListView());
```
3. When you want to show the loading animation, use this code.
4. When you want to show the loading animation, use this code.

```java
emptyLayout.showLoading();
```
4. When you want to show any error, use this code.
5. When you want to show any error, use this code.

```java
emptyLayout.showError();
```
4. When your list doesn't have any item to show, use this code.
6. When your list doesn't have any item to show, use this code.

```java
emptyLayout.showEmpty();
Expand Down

0 comments on commit 3d11a8a

Please sign in to comment.