Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
No response for click event on my custom button.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yang Yang  
View profile  
 More options Sep 30 2012, 7:41 am
From: Yang Yang <comety...@gmail.com>
Date: Sun, 30 Sep 2012 04:41:06 -0700 (PDT)
Local: Sun, Sep 30 2012 7:41 am
Subject: No response for click event on my custom button.

Hi All,

I am new to android development.
Now I've encountered a problem related to the onClick listener.

I put a LinearLayout inside a custom view. The linearLayout which contains
image view and text is a button.
I set it clickable and attach a clickListener with it. But, it has no
response on click event.
However, I use isClickable and hasClickListener to check the linearlayout.
They all return true.

So I am really don't know what wrong with my code.
Is there anyone can help me out of this problem, Thanks a lot.

best regards,

Yang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TreKing  
View profile  
 More options Oct 1 2012, 7:36 pm
From: TreKing <treking...@gmail.com>
Date: Mon, 1 Oct 2012 18:31:36 -0500
Local: Mon, Oct 1 2012 7:31 pm
Subject: Re: [android-developers] No response for click event on my custom button.

On Sun, Sep 30, 2012 at 6:41 AM, Yang Yang <comety...@gmail.com> wrote:
> So I am really don't know what wrong with my code.

Show the relevant code. As little as necessary to show your issue.

--------------------------------------------------------------------------- ----------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lew  
View profile  
 More options Oct 2 2012, 4:19 pm
From: Lew <lewbl...@gmail.com>
Date: Tue, 2 Oct 2012 13:19:37 -0700 (PDT)
Local: Tues, Oct 2 2012 4:19 pm
Subject: Re: [android-developers] No response for click event on my custom button.

TreKing wrote:
> Yang Yang wrote:

>> So I am really don't know what wrong with my code.

> Show the relevant code. As little as necessary to show your issue.

This comes up a lot. You have to describe symptoms to obtain relief. The
description has to
be like a miniskirt - long enough to cover the subject but short enough to
keep it interesting.

In the case of code, it has to be a short, simple, complete, compilable
example (SSCCE). We
should be able to compile the code you provide and either see the exact
compilation issue you
are asking about, or the exact runtime behavior you are asking about.

You will find good advice in
http://sscce.org/

--
Lew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »