Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,22 @@ How To Use
#### Include Library in your project ####
just include the following line your **build.gradle (Module:app)** file and sync project.

compile 'io.github.vipin.imagetextview:imagetextview:1.0.1'
```groovy
compile 'io.github.vipin.imagetextview:imagetextview:1.0.1'
```

After including the library you are all set to use it. Below is a code sample to use **ImageTextView**.

<io.github.vipin.imagetextview.ImageTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:imageSrc="@drawable/sherlock"
app:imageSubTitle="Benedict Cumberbatch"
app:imageTitle="Sherlock Holmes"
android:id="@+id/v1"
/>
```xml
<io.github.vipin.imagetextview.ImageTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:imageSrc="@drawable/sherlock"
app:imageSubTitle="Benedict Cumberbatch"
app:imageTitle="Sherlock Holmes"
android:id="@+id/v1"
/>
```

You have to specify 3 attribute values.

Expand All @@ -56,9 +60,3 @@ License
-------------

[Apache 2.0](https://github.com/vipinagrahari/ImageTextView/edit/master/LICENSE.md)