May I know where I could find Android native send button icon? Like the one used in hangout/message.
I found one in android.R.drawble.ic_menu_send but the color is different.
Many thanks in advance.
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.
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.
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.
Create a String (named hyperlink) in string. xml and give its value like link and then set property android:setText="@string/hyperlink" to Button.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With