Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8002035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:15:06+00:00 2026-06-04T16:15:06+00:00

I am trying to make something function exactly like the send comment button on

  • 0

I am trying to make something function exactly like the send comment button on the Google Plus app. Everything is easy enough to get working, but I can’t figure out the proper way to have the submit icon/button change background color when clicked. What is the best way to handle that? I assume I could do something on click on on hold to change the color manually, but I’m not sure that’s the proper way to do it.

Here’s a screenshot of what I am talking about (below). In the bottom right-hand corner there is a small arrow send icon. When clicked (or held), the background of the image changes to show that it has been clicked. I would like to do the same thing.

App

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:15:07+00:00Added an answer on June 4, 2026 at 4:15 pm

    You can use an ImageButton:

    In your layout you create the ImageButton, with the arrow image as src, and a selector as background.

        <ImageButton android:id="@+id/someID"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"   
            android:src="@drawable/the_arrow_image"
            android:background="@drawable/background_selector"/>
    

    The selector can look something like this:

    <?xml version="1.0" encoding="utf-8"?>
    
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:state_pressed="true" 
            android:drawable="@drawable/background_color_when_pressed" />
        <item android:drawable="@drawable/background_color_when_not_pressed" />
    </selector>
    

    The arrow image has to be transparent for the background to be visible 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make something like function config( $string ){ require 'configuration.php'; return $config[$string];
I'm trying to make some sliding captions, something like Mosaic , but lighter. Everything
Im trying to make something like this http://demos.99points.info/facebook_wallpost_system/ which is a comment system. I
Trying to make a simple program to catalogue books. Something like this, for example:
Trying to make a simple program to catalogue books. Something like this, for example:
hello im trying to make something like github treeslider im new to javascript.. but
Does racket have something like guile's procedure-source function, e.g.: (define (plus-one x) (+ 1
I am trying to make something like a thermometer but but I have a
I've a custom module with custom table, now, i'm trying to make something like
i think i'm doing something wrong. i mean, I'm trying to make a function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.