Skip to content

Commit 750fe44

Browse files
committed
bump, update readme
1 parent 3a45bec commit 750fe44

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

README.md

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,21 @@ XML widget to create the Material Design Floating Action Button for Android Nati
1212

1313
## Usage
1414

15-
### For using with a custom resource
16-
17-
#### XML
18-
```XML
19-
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
20-
xmlns:FAB="nativescript-floatingactionbutton">
21-
<FAB:fab tap="fabTap"
22-
icon="res://ic_add_white"
23-
backColor="#ff4081"
24-
rippleColor="#f1f1f1"
25-
class="fab-button" />
26-
</Page>
27-
```
28-
### For using with an android built-in resource
29-
3015
#### XML
16+
##### **NOTE** The sample XML here will position the FAB on top of the ListView. There is no need for absolute positioning.
3117
```XML
3218
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
3319
xmlns:FAB="nativescript-floatingactionbutton">
34-
<FAB:fab tap="fabTap"
35-
icon="ic_menu_camera"
36-
backColor="#ff4081"
37-
rippleColor="#f1f1f1"
38-
class="fab-button" />
20+
<grid-layout rows="auto, *, auto">
21+
<list-view row="1">
22+
<list-view.itemTemplate>
23+
<label text="Hello" />
24+
</list-view.itemTemplate>
25+
</list-view>
26+
<android row="1">
27+
<FAB:fab tap="fabTap" icon="ic_menu_camera" backColor="#ff4081" rippleColor="#f1f1f1" class="fab-button" />
28+
</android>
29+
</grid-layout>
3930
</Page>
4031
```
4132

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-floatingactionbutton",
3-
"version": "0.1.7",
3+
"version": "0.1.71",
44
"description": "A NativeScript plugin to provide an XML widget to implement the Material Design Floating Action Button in an Android app.",
55
"main": "fab.js",
66
"nativescript": {

0 commit comments

Comments
 (0)