2016-07-16 92 views
1

我在哪裏可以找到nativescript的系統圖標?NativeScript系統圖標

例如:

<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> 

我在哪裏可以找到 ic_menu_backic_menu_edit圖標?

+0

如果解決了您的問題,您能接受答案嗎? :) – ntrp

回答

2

他們還包含了Android Studio中,你可能已經安裝了哪些已經。我砍死這個.bat文件出來一個圖標複製到我的app文件夾在Windows上:

@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 

希望這有助於。