在哪里可以找到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_back
,ic_menu_edit
图标?
答案 0 :(得分:3)
您可以在此处找到所有系统图标:
https://developer.android.com/reference/android/R.drawable.html
无论如何也读到这个:
http://docs.nativescript.org/angular/ui/action-bar.html#setting-icons
答案 1 :(得分:-2)
它们也包含在Android Studio中,您可能已经安装了它。我将此.bat文件破解为将图标复制到Windows上的app文件夹:
@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
希望这有帮助。