Comments (8)
What's the full markup?
On Thu, Nov 3, 2016, 8:34 AM bm-software [email protected] wrote:
I'm testing my app, built with Typescript and Angular 2, on ios emulator
and while on Android everything works fine, on iOS the FAB dowsn't show up.
The code is the same for both platforms:<Fab row="1" class="fab-button"
(tap)="showAddContactModal()"
icon="res://ic_add_white_48dp"
rippleColor="#f1f1f1"
verticalAlignment="bottom"
horizontalAlignment="right"
hideOnSwipeOfView="contactsList">
What is the problem?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#37,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFulhFlXc_DvxaGY-izXrxEQOiylRlJjks5q6eL4gaJpZM4KoXFB
.
from nativescript-floatingactionbutton.
@bradmartin Sorry, here is the full markup:
<GridLayout rows="auto, *">
<StackLayout row="1">
<location></location>
<CardView shadowColor="#949494" elevation="10" margin="10">
<StackLayout orientation="vertical">
<Label text="Numeri Personali" verticalAlignment="center" horizontalAlignment="left" textWrap="true" class="card-header"></Label>
<StackLayout class="hr-light"></StackLayout>
<GridLayout rows="*" *ngIf="contacts.length === 0">
<Label row="0" text="Nessun contatto inserito." verticalAlignment="center" horizontalAlignment="center"
textWrap="true" class="h3 font-italic">
</Label>
</GridLayout>
<RadListView id="contactsList" [items]='contacts' selectionBehavior="None" *ngIf="contacts.length > 0"
(itemTap)="onItemTap($event)"
(itemHold)="onItemHold($event)"
itemSwipe="false"
pullToRefresh="true"
(pullToRefreshInitiated)="onPullToRefreshInitiated($event)">
<ListViewLinearLayout tkListViewLayout scrollDirection="Vertical"
itemInsertAnimation="Default" itemDeleteAnimation="Default">
</ListViewLinearLayout>
<template tkListItemTemplate let-contact='item' >
<StackLayout>
<GridLayout columns="80, *">
<Image col="0" [src]="contact.icon" stretch="aspectFill" verticalAlignment="center" horizontalAlignment="center" class="contact-icon"></Image>
<StackLayout col="1" verticalAlignment="center" horizontalAlignment="left" color="black" margin="5 0">
<Label [text]="contact.name" verticalAlignment="center" horizontalAlignment="left" textWrap="true" id="personalContactName" class="h2"></Label>
<Label [text]="contact.phone" verticalAlignment="center" horizontalAlignment="left" class="h3"></Label>
<Label [text]="contact.notes" verticalAlignment="center" horizontalAlignment="left" textWrap="true" class="h3 font-italic"></Label>
</StackLayout>
</GridLayout>
<StackLayout class="hr-light"></StackLayout>
</StackLayout>
</template>
<GridLayout *tkListItemSwipeTemplate columns="auto, *, auto" class="listItemSwipeGridLayout">
<StackLayout id="mark-view" class="markViewStackLayout" col="0" (tap)="onLeftSwipeClick($event)">
<Label text="mark" verticalAlignment="center" horizontalAlignment="center"></Label>
</StackLayout>
<StackLayout id="delete-view" class="deleteViewStackLayout" col="2" (tap)="onRightSwipeClick($event)">
<Label text="delete" verticalAlignment="center" horizontalAlignment="center"></Label>
</StackLayout>
</GridLayout>
</RadListView>
</StackLayout>
</CardView>
</StackLayout>
<Fab row="1" class="fab-button"
(tap)="showAddContactModal()"
icon="res://ic_add_white_48dp"
rippleColor="#f1f1f1"
verticalAlignment="bottom"
horizontalAlignment="right"
hideOnSwipeOfView="contactsList">
</Fab>
</GridLayout>
from nativescript-floatingactionbutton.
Just dawned on me. On iOS height and width are required, try setting those
values and it should render.
On Thu, Nov 3, 2016, 9:50 AM bm-software [email protected] wrote:
@bradmartin https://github.com/bradmartin Sorry, here is the full
markup:<CardView shadowColor="#949494" elevation="10" margin="10"> <StackLayout orientation="vertical"> <Label text="Numeri Personali" verticalAlignment="center" horizontalAlignment="left" textWrap="true" class="card-header"></Label> <StackLayout class="hr-light"></StackLayout> <GridLayout rows="*" *ngIf="contacts.length === 0"> <Label row="0" text="Nessun contatto inserito." verticalAlignment="center" horizontalAlignment="center" textWrap="true" class="h3 font-italic"> </Label> </GridLayout> <RadListView id="contactsList" [items]='contacts' selectionBehavior="None" *ngIf="contacts.length > 0" (itemTap)="onItemTap($event)" (itemHold)="onItemHold($event)" itemSwipe="false" pullToRefresh="true" (pullToRefreshInitiated)="onPullToRefreshInitiated($event)"> <ListViewLinearLayout tkListViewLayout scrollDirection="Vertical" itemInsertAnimation="Default" itemDeleteAnimation="Default"> </ListViewLinearLayout> <template tkListItemTemplate let-contact='item' > <StackLayout> <GridLayout columns="80, *"> <Image col="0" [src]="contact.icon" stretch="aspectFill" verticalAlignment="center" horizontalAlignment="center" class="contact-icon"></Image> <StackLayout col="1" verticalAlignment="center" horizontalAlignment="left" color="black" margin="5 0"> <Label [text]="contact.name" verticalAlignment="center" horizontalAlignment="left" textWrap="true" id="personalContactName" class="h2"></Label> <Label [text]="contact.phone" verticalAlignment="center" horizontalAlignment="left" class="h3"></Label> <Label [text]="contact.notes" verticalAlignment="center" horizontalAlignment="left" textWrap="true" class="h3 font-italic"></Label> </StackLayout> </GridLayout> <StackLayout class="hr-light"></StackLayout> </StackLayout> </template> <GridLayout *tkListItemSwipeTemplate columns="auto, *, auto" class="listItemSwipeGridLayout"> <StackLayout id="mark-view" class="markViewStackLayout" col="0" (tap)="onLeftSwipeClick($event)"> <Label text="mark" verticalAlignment="center" horizontalAlignment="center"></Label> </StackLayout> <StackLayout id="delete-view" class="deleteViewStackLayout" col="2" (tap)="onRightSwipeClick($event)"> <Label text="delete" verticalAlignment="center" horizontalAlignment="center"></Label> </StackLayout> </GridLayout> </RadListView> </StackLayout> </CardView> </StackLayout> <Fab row="1" class="fab-button" (tap)="showAddContactModal()" icon="res://ic_add_white_48dp" rippleColor="#f1f1f1" verticalAlignment="bottom" horizontalAlignment="right" hideOnSwipeOfView="contactsList"> </Fab>
—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
#37 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFulhNjRs50IcbrPfOl9K0LOeJjE7DQjks5q6fSSgaJpZM4KoXFB
.
from nativescript-floatingactionbutton.
@bradmartin Yes, now it render, but the icon is not shown. I've included it in AppResource ios folder with three dimensions;
- ic_add_white_48dp: 16x16
- ic_add_white_48dp@2x: 32x32
- ic_add_white_48dp@3x: 48x48
Is that ok? Why I can't see the add icon?
from nativescript-floatingactionbutton.
@bm-software Can you add the icon to the actionbar or something to see if it shows up there?
from nativescript-floatingactionbutton.
@sitefinitysteve Found the issue, it has a different name. Sorry :)
from nativescript-floatingactionbutton.
All good @bm-software ?
from nativescript-floatingactionbutton.
@bradmartin Yes, now it works fine :)
from nativescript-floatingactionbutton.
Related Issues (20)
- Can I remove padding around icon? HOT 1
- Calling js method onCreateView failed HOT 2
- Error when adding the plugin HOT 1
- JS: topmost() is deprecated. Use Frame.topmost() instead. HOT 2
- How to use svg images HOT 2
- Fab is not showing when scroll completes HOT 1
- text is not working. HOT 6
- loadFromFontIconCode() is deprecated HOT 4
- Adapt icon to screen HOT 10
- Styles not applied on app build for production HOT 2
- FAB 2.0.1: font icons have different sizes on different screens HOT 1
- Crash in flexbox-layout.android.js - Right-hand side of 'instanceof' is not an object HOT 5
- NativeScript 7 update HOT 1
- Could not load view for: Fab.ReferenceError: NativeClass is not defined when used with {N} 7 with angular HOT 12
- FAB.TypeError: core_1.Property is not a constructor HOT 5
- Changing color to text does not work HOT 6
- Display the action items when Fab Button is clicked - Nativescript7 Angular10 HOT 3
- @nativescript/core still imported for lower version than NS7
- icon appearing bigger and cannot be resized HOT 2
- App is crashing on NS Angular
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-floatingactionbutton.