Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
burgessjp committed Nov 9, 2016
1 parent 6f5f43c commit b8161a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
A TextView that can get every word in it's content by click,and you can set HighlightText also.
(Support English and Chinese)

![](capture/capture.gif)

##Usage

###Add GetWordTextView to your layout:
Expand All @@ -22,6 +24,22 @@ A TextView that can get every word in it's content by click,and you can set High
- <code>selectedColor</code>:you clicked word's background
- <code>language</code>:your content's language

###Set Text and Listener in your code
```html
mEnglishGetWordTextView = (GetWordTextView) findViewById(R.id.english_get_word_text_view);
mEnglishGetWordTextView.setText("A view that can get every word inside,it's very helpful view!");
mEnglishGetWordTextView.setOnWordClickListener(new GetWordTextView.OnWordClickListener() {
@Override
public void onClick(String word) {
showToast(word);
}
});
```


##TODO
Mixed support for English and Chinese


##Contact & Help

Expand Down
Binary file added capture/capture.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8161a7

Please sign in to comment.