Skip to content

Commit b887506

Browse files
committed
Merge pull request #7 from ravidsrk/patch-1
Added code syntax highlighting to Readme
2 parents 5a66a62 + afb1544 commit b887506

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Like a iPhone 6 & 6 Plus.
1414
## Usage
1515
Add dependencies
1616

17-
```
17+
```gradle
1818
compile 'com.github.sakebook:Reachability:0.2.0@aar'
1919
```
2020

2121
In Activity `onCreate`
2222

23-
```
23+
```java
2424
Reachability reachability = new Reachability(this);
2525
reachability.makeHoverView(Reachability.Position.RIGHT);
2626
```
@@ -39,13 +39,14 @@ reachability.makeHoverView(Reachability.Position.RIGHT);
3939
* `canTouchableBackView`
4040
* if you call this method, You must write the AndroidManifest.xml the following code.
4141

42-
```AndroidManifest.xml
42+
```xml
43+
<!-- AndroidManifest.xml -->
4344
...
4445
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
4546
...
4647
```
4748

48-
```
49+
```java
4950
reachability.canTouchableBackView(true);
5051
```
5152

@@ -55,7 +56,7 @@ reachability.canTouchableBackView(true);
5556
* `setCustomSlideInAnimation`
5657
* `setCustomSlideOutAnimation`
5758

58-
```
59+
```java
5960
// Make Own HoverView. Support only ImageView.
6061
ImageView view = new ImageView(this);
6162
view.setBackgroundResource(R.drawable.custom_button_selector);

0 commit comments

Comments
 (0)