Commit afb1544 1 parent 5a66a62 commit afb1544 Copy full SHA for afb1544
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ Like a iPhone 6 & 6 Plus.
14
14
## Usage
15
15
Add dependencies
16
16
17
- ```
17
+ ``` gradle
18
18
compile 'com.github.sakebook:Reachability:0.2.0@aar'
19
19
```
20
20
21
21
In Activity ` onCreate `
22
22
23
- ```
23
+ ``` java
24
24
Reachability reachability = new Reachability (this );
25
25
reachability. makeHoverView(Reachability . Position . RIGHT );
26
26
```
@@ -39,13 +39,14 @@ reachability.makeHoverView(Reachability.Position.RIGHT);
39
39
* ` canTouchableBackView `
40
40
* if you call this method, You must write the AndroidManifest.xml the following code.
41
41
42
- ``` AndroidManifest.xml
42
+ ``` xml
43
+ <!-- AndroidManifest.xml -->
43
44
...
44
45
<uses-permission android : name =" android.permission.EXPAND_STATUS_BAR" />
45
46
...
46
47
```
47
48
48
- ```
49
+ ``` java
49
50
reachability. canTouchableBackView(true );
50
51
```
51
52
@@ -55,7 +56,7 @@ reachability.canTouchableBackView(true);
55
56
* ` setCustomSlideInAnimation `
56
57
* ` setCustomSlideOutAnimation `
57
58
58
- ```
59
+ ``` java
59
60
// Make Own HoverView. Support only ImageView.
60
61
ImageView view = new ImageView (this );
61
62
view. setBackgroundResource(R . drawable. custom_button_selector);
You can’t perform that action at this time.
0 commit comments