Skip to content

Commit

Permalink
Change README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mnayef95 committed Jun 3, 2017
1 parent 6d4cad5 commit 4fa27ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ A light-weight android library that can be quickly integrated into any app to us
**XML**
```
<com.mnayef.library.view.LinkPreviewView
android:id="@+id/link_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:failedLoadMsg="@string/failed_load_url"
app:invalidLinkMsg="@string/invalid_url" />
android:id="@+id/link_preview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:failedLoadMsg="@string/failed_load_url"
app:invalidLinkMsg="@string/invalid_url" />
```

**JAVA**
Expand All @@ -26,7 +26,7 @@ LinkPreviewView linkPreviewView = (LinkPreviewView) itemView.findViewById(R.id.l
linkPreviewView.load("https://www.github.com");
```

# Example custom view:
# Example custom request:

**JAVA**
```
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/com/mnayef/linkpreview/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ protected void onCreate(Bundle savedInstanceState) {
new LinkPreviewTask(this, "https://www.github.com", new Callback() {
@Override
public void onSuccess(Link link) {

// Use link object to get url data.
}

@Override
public void onFailed() {

// Handle network error
}

@Override
public void onMalformedUrl() {

// Handle malformed url
}
});
}
Expand Down

0 comments on commit 4fa27ac

Please sign in to comment.