2016-07-16 17 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

:とにかく

https://developer.android.com/reference/android/R.drawable.html

もこれを読んで既に。私は、これがWindows上で私のアプリのフォルダにアイコンをコピーして.batファイルハッキング:

@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 

は、この情報がお役に立てば幸いです。

関連する問題