How to add XML drawable in Eclipse

后端 未结 8 673
青春惊慌失措
青春惊慌失措 2021-01-02 22:21

Ok guys I\'m little stacked here. According to official documentation Google says that \"Once you\'ve defined your Drawable in XML, save the file in the res/drawable/ direct

8条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-02 23:13

    Drag and drop an image-button from "Images&Media" folder in palette. When the dialog for choosing an icon is shown, klick on "create a new icon" down below, enter a name for your new drawable (only small letters) and then choose your image and what the drawable is for (a button or what so ever). Remember to choose the right THEME, that you are creating the icon for (a light theme or a dark theme). Eclipse will resize the pic and do all the rest work for you to have good-looking drawable. After that, you can delete the image-button. It's a kind of strange, but it works that way the fastest and WITHOUT CODING and without any graphical working or any filemanagement!!!!

提交回复
热议问题