Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android native send button icon

Tags:

android

icons

May I know where I could find Android native send button icon? Like the one used in hangout/message.

Send button icon

I found one in android.R.drawble.ic_menu_send but the color is different.

Many thanks in advance.

like image 399
Scott Meng Avatar asked Jul 11 '13 07:07

Scott Meng


People also ask

How to declare a button in android?

To define the click event handler for a button, add the android:onClick attribute to the <Button> element in your XML layout. The value for this attribute must be the name of the method you want to call in response to a click event. The Activity hosting the layout must then implement the corresponding method.

How can you tell when a button is clicked on android?

If you have more than one button click event, you can use switch case to identify which button is clicked. Link the button from the XML by calling findViewById() method and set the onClick listener by using setOnClickListener() method. setOnClickListener takes an OnClickListener object as the parameter.

Which callback is called when a button is tapped?

The callback method for the android:onClick attribute must be public , return void , and define a View as its only parameter (this is the View that was tapped). Use the method to perform a task or call other methods as a response to the Button tap.

How to link button in android studio?

Create a String (named hyperlink) in string. xml and give its value like link and then set property android:setText="@string/hyperlink" to Button.


2 Answers

Color depends on theme you use so if you need white icon holo_dark is your theme. Alternatively you may download entire icon pack from Android website

http://developer.android.com/downloads/design/Android_Design_Icons_20120814.zip

White version is in Android_Design_Icons_20120711/All_Icons/holo_dark/hdpi/6_social_send_now.png

like image 116
robotoaster Avatar answered Nov 11 '22 20:11

robotoaster


The answer is correct but outdated, as with release of Android 5, Material Design icons are now the preferred alternative. As of May 2015, the latest version is Material Design Icons 1.0.1.

like image 20
Behnam Avatar answered Nov 11 '22 20:11

Behnam