How can I create an android menu item using android setting icon

后端 未结 4 2029
天涯浪人
天涯浪人 2020-12-23 20:12

Can you please tell me how can I create an android menu item using android setting icon?

4条回答
  •  太阳男子
    2020-12-23 20:24

    You can see all the icons in the android SDK forder:

    _your_install_path_\android-sdk\platforms\android-10\data\res\drawable-hdpi\
    

    and then get a reference to them with:

    android.R.drawable.ic_menu_preferences
    

    just like it was your drawable.

提交回复
热议问题