File tree Expand file tree Collapse file tree 2 files changed +12
-21
lines changed Expand file tree Collapse file tree 2 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -12,30 +12,21 @@ XML widget to create the Material Design Floating Action Button for Android Nati
12
12
13
13
## Usage
14
14
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
-
30
15
#### XML
16
+ ##### ** NOTE** The sample XML here will position the FAB on top of the ListView. There is no need for absolute positioning.
31
17
``` XML
32
18
<Page xmlns =" http://schemas.nativescript.org/tns.xsd"
33
19
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 >
39
30
</Page >
40
31
```
41
32
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nativescript-floatingactionbutton" ,
3
- "version" : " 0.1.7 " ,
3
+ "version" : " 0.1.71 " ,
4
4
"description" : " A NativeScript plugin to provide an XML widget to implement the Material Design Floating Action Button in an Android app." ,
5
5
"main" : " fab.js" ,
6
6
"nativescript" : {
You can’t perform that action at this time.
0 commit comments