Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use an image from the system on a button or do I have to draw my own?

Tags:

android

I have a delete button which I'd like to have as a wastepaper basket icon. Similar to the one at the bottom of the home screen which appears when you hold down a shortcut.

Is it possible to re-use Android system Icons, or do I have to draw my own?

like image 687
FrinkTheBrave Avatar asked Feb 26 '11 15:02

FrinkTheBrave


People also ask

Can you use a copyrighted image if you cite it?

Citing an image has nothing to do with fair use. Providing attribution for an artist or linking to an image offers you no protection against copyright infringement; it only helps you avoid plagiarism. To determine if you can use the image, see the four-factors of fair use, outlined at the top of this page.

How can I use an image without copyright infringement?

If you edit an image that you didn't create, copyright law still applies. The only way to avoid copyright infringement with images is to create unique works, purchase a license to use an image or find a free-to-use image.

Can I use an image from the Internet?

The only way to legally use a copyrighted image is to obtain a license or an assignment from the copyright owner. “It's online, so it's free, right?” In a word – NO. Online images are protected by copyright as much as a picture hanging in an art gallery is.


2 Answers

Yes it is possible. Check out this page: http://androiddrawableexplorer.appspot.com/ for a list of all the usable icons. There is a usage example at the top, but if you are doing this in a menu.xml file, use some code that looks like this

<item android:id="@+id/end"
    android:title="@string/end_label"
    android:alphabeticShortcut="@string/end_shortcut"
    android:icon = "@android:drawable/ic_menu_close_clear_cancel" />
like image 92
Cbas Avatar answered Oct 19 '22 21:10

Cbas


FrinkTheBrave,

You can access many of the system drawables through android.R.drawable.<drawable here> programmatically or android:icon=@android:drawable/<drawable here> in XML. This site contains a full list of drawables, but some of them are private and therefor unusable by the user. If you are using Eclipse, intellisense should pull up a list of available drawables when you type android.R.drawable.

like image 37
Will Tate Avatar answered Oct 19 '22 21:10

Will Tate