Skip to content

Commit

Permalink
Merge pull request cdflynn#9 from ravidsrk/patch-1
Browse files Browse the repository at this point in the history
Added code syntax highlighting to Readme
  • Loading branch information
cdflynn committed Feb 27, 2016
2 parents 4e175e4 + 5574283 commit 33c5072
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
![Action Bar](https://github.com/cdflynn/crossview/blob/master/sample/images/cross_btn.gif?raw=true)

Add a CrossView to your layout
```
```xml
<cdflynn.android.library.crossview.CrossView
android:id="@+id/sample_cross_view"
android:layout_width="50dp"
Expand All @@ -21,7 +21,7 @@ Add a CrossView to your layout
Note that you can define the color with `lineColor`

toggle in code:
```
```java
private final View.OnClickListener mCrossViewClickListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand All @@ -31,24 +31,24 @@ toggle in code:
```

You can also set a state directly:
```
```java
mCrossView.plus();
```
```
```java
mCrossView.cross();
```

Optionally supply an animation duration in milliseconds

```
```java
mCrossView.cross(0l);
```

```
```java
mCrossView.toggle(150l);
```

```
```java
mCrossView.plus(200l);
```

Expand Down

0 comments on commit 33c5072

Please sign in to comment.