Where are all the standard Android icon resources?

前端 未结 8 1443
暗喜
暗喜 2020-12-04 20:53

I have just started writing my first ever Java/Android application, so forgive the total n00b question.

How do you access the the standard operating system icons suc

8条回答
  •  半阙折子戏
    2020-12-04 21:18

    it is now possible to use vector assets to generate standard (or customised) icons for android.

    • Add 'com.android.tools.build:gradle:1.4.0-beta3' to your build.gradle file. (The stable version will be out in the coming weeks).
    • Add a vector asset by right-clicking res/drawable/ > New > Vector Asset. Android Studio provides a built-in viewer for you to pick your drawable.
    • Reference your icon like you usually do. Eg: android:icon="@drawable/ic_help_24dp"

提交回复
热议问题