2016-07-16 11 views
1

Wo finde ich Systemicons für nativescript?NativeScript-Systemicons

zum Beispiel:

<ActionBar title="ActionBar Style"> 
    <NavigationButton text="Go Back" android.systemIcon="ic_menu_back"></NavigationButton> 
    <ActionItem ios.systemIcon="2" android.systemIcon="ic_menu_edit" ios.position="right"></ActionItem> 
</ActionBar> 

Wo finde ich ic_menu_back, ic_menu_edit Symbole?

+0

können Sie die Antwort akzeptieren, wenn es Ihr Problem gelöst hat? :) – ntrp

Antwort

2

Sie sind auch mit Android Studio enthalten, die Sie wahrscheinlich installiert haben bereits. Ich gehackt diese Datei aus .bat ein Symbol, um meine app-Ordner unter Windows zu kopieren:

das hilft
@echo on 
set BAT_FILE=%~n0 
set source="C:\Program Files\Android\Android Studio\plugins\android\lib\layoutlib\data\res" 
set target=".\App_Resources\Android" 
set f1=drawable-hdpi 
set f2=drawable-ldpi 
set f3=drawable-mdpi 
set f4=drawable-nodpi 
set f5=drawable-xhdpi 
set f6=drawable-xxhdpi 
set f7=drawable-xxxhdpi 

set icon=ic_menu_back.png 

if exist %source%\%f1%\%icon% copy %source%\%f1%\%icon% %target%\%f1%\ >%BAT_FILE%.txt 
if exist %source%\%f2%\%icon% copy %source%\%f2%\%icon% %target%\%f2%\ >>%BAT_FILE%.txt 
if exist %source%\%f3%\%icon% copy %source%\%f3%\%icon% %target%\%f3%\ >>%BAT_FILE%.txt 
if exist %source%\%f4%\%icon% copy %source%\%f4%\%icon% %target%\%f4%\ >>%BAT_FILE%.txt 
if exist %source%\%f5%\%icon% copy %source%\%f5%\%icon% %target%\%f5%\ >>%BAT_FILE%.txt 
if exist %source%\%f6%\%icon% copy %source%\%f6%\%icon% %target%\%f6%\ >>%BAT_FILE%.txt 
if exist %source%\%f7%\%icon% copy %source%\%f7%\%icon% %target%\%f7%\ >>%BAT_FILE%.txt 

type %BAT_FILE%.txt 
rem . 
pause 
erase %BAT_FILE%.txt 

Hoffnung.