Nativescript: Where to find android system icons.

Created on 16 Jul 2016  路  9Comments  路  Source: NativeScript/NativeScript

I'm trying to have android system icon in ActionBar




Where can I find icon symbols? For example 矛c_menu_back is for back button similarly I want to have menu icon on my action bar.

Thanks in advance.

android question

Most helpful comment

is there a way to use android system icons on buttons outside the action bar??

All 9 comments

Hello @dimpu

Those symbols are from the Android SDk drawable resources.
Usually can be found in _\path-to-your-android-sdk-folder\platforms\android-version\data\res_

More info can be found at the following links:
https://developer.android.com/reference/android/R.drawable.html

and here
https://developer.android.com/design/downloads/index.html

Respectively, you can use systemIcons in your ActionBarItem with the following syntax

<ActionBar title="Action Items">
  <ActionItem tap="onShare"
      ios.systemIcon="9" ios.position="left"
      android.systemIcon="ic_menu_share" android.position="actionBar"/>
  <ActionItem tap="onDelete"
      ios.systemIcon="16" ios.position="right"
      text="delete" android.position="popup"/>
</ActionBar>

is there a way to use android system icons on buttons outside the action bar??

@majorpaynegh i also want to know this

@NickIliev can i call the android system icon in css??

@NickIliev - Any way to use System Icons outside ActionBar as @majorpaynegh asks above?
Couldn't find any resource if yes.

Is there any links where the entire album of icons is available? It seems like the links from nick are only text or for Angular Material.

Can we use Angular Material icons with android.systemIcon?

We can use android system icons with <Image> tag in angular version?

Here is a gallery of the android system icons http://www.hellothupten.com/2013/06/25/436/

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings