Skip to content

Commit

Permalink
Minor merge conflicts on readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakis Kaliakoudas committed Oct 3, 2016
2 parents f2f8b09 + cf7e2e8 commit 09d915b
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ How to
======

To set the highlight areas you can add the following statements programmatically:

emphasisTextView.setText("SALAD");
emphasisTextView.setTextToHighlight("sa");
emphasisTextView.setHighlightColor("#ff3393b4");
emphasisTextView.setCaseInsensitive(true);
emphasisTextView.highlight();

```java
emphasisTextView.setText("SALAD");
emphasisTextView.setTextToHighlight("sa");
emphasisTextView.setHighlightColor("#ff3393b4");
emphasisTextView.setCaseInsensitive(true);
emphasisTextView.highlight();
```
Please check the sample project for some more working examples.

Add it to your project
Expand All @@ -25,27 +25,29 @@ Add it to your project
This library is hosted in [jcenter](https://bintray.com/bintray/jcenter)

For gradle, you can import it with:

dependencies {
compile 'com.athkalia.emphasis:emphasis:0.4'
}

```groovy
dependencies {
compile 'com.athkalia.emphasis:emphasis:0.4'
}
```
For maven, you can import it with:

<dependency>
<groupId>com.athkalia.emphasis</groupId>
<artifactId>emphasis</artifactId>
<type>aar</type>
<version>0.4</version>
</dependency>

```xml
<dependency>
<groupId>com.athkalia.emphasis</groupId>
<artifactId>emphasis</artifactId>
<type>aar</type>
<version>0.4</version>
</dependency>
```
Todos
-----
Feel free to open a pull request for anything that you want to see added.

What I have in mind:


1) Introduce a delegate when someone is using another class that is already extending from TextView (possibly another library).

2) Create similar functionality via xml attributes.

[1]: ./art/screenshot.png
[1]: ./art/screenshot.png

0 comments on commit 09d915b

Please sign in to comment.