hinzufügen Wie Symbole mit NativeScript einem Textfeld hinzufügen, wie Sie auf dem Bild sehen kann: hereIcons auf ein TextField- NativeScript
Mein xhtml Code:
<StackLayout>
<Image src="res://logo_login" stretch="none" horizontalAlignment="center"></Image>
<TextField #username class="input" hint="GEBRUIKERSNAAM" [(ngModel)]="user.username" autocorrect="false"
autocapitalizationType="none"></TextField>
<TextField #password class="input" hint="PASWOORD" secure="true" [(ngModel)]="user.password"></TextField>
<Button class="btn btn-primary btn-login icon" text="\e912 INLOGGEN" (tap)="login()"></Button>
<button class="btn btn-forgot-pass" text="PASWOORD VERGETEN?" (tap)="forgotpass()"></button>
Sind Sie sicher, dass das Bild war? Auch Ihr XHTML nicht wie XHTML aussieht. Es ist nicht sogar wohlgeformte xml. –
versuchen Sie mit Icon-Fonts wie hier beschrieben https://docs.nativescript.org/angular/ui/icon-fonts.html –