differentiating single click and long click.

by mmkr » Fri, 19 Feb 2010 02:19:02 GMT


Sponsored Links
 Hi all,
        I have an array list of a view in my application. The view has
both single click and long click
listeners. To detect a particular view that is selected I'm using
isPressed() for single click listener. Now how can I detect that a
particular view is longclicked from the array list of view?

thanks in advance

--



differentiating single click and long click.

by social hub » Fri, 19 Feb 2010 02:36:43 GMT


 can u try using onclickpress() and implement there




>


Sponsored Links


differentiating single click and long click.

by social hub » Fri, 19 Feb 2010 02:37:06 GMT


 sorry meant onlongpress






>>



Other Threads

1. ADP1 not showing in ddms

Hi,
my ADP1 is not showing in ddms, I have:

Ubuntu 8.10
eclipse version: 3.4.1
jdk: sun-java6-jdk
android-sdk-linux_x86-1.0_r2

I'be also removed default-jdk and openjdk-6-jdk to be sure.

On: telnet localhost 9700
I have: Trying 127.0.0.1...
Connected to localhost.

When I start ddms on psauxf I have:
PID    %CPU  %MEM    VSZ      RSS    TTY    STAT    START   TIME     COMMAND
7532     26.5      3.2      131348  66888     ?        Sl
23:13    0:03     java -Xmx256M -


It's a usb - serial driver problem?

On Windows I haven't any problem, but I don't want to use Windows!

Any hint?

Thanks,
Maurizio

--~--~---------~--~----~------------~-------~--~----~

2. Swapping in and out ViewGroups (Layout) within a container ViewGroup.

Hello,
I'm trying to dynamically swap in and out various layouts to one
layout container.

I've instantiated the container layout (mContainerLayout) by finding
it using the id through the maine Activity layout. This is successful.

Next, I add the inner layout by calling:

layoutInflater = this.getLayoutInflater();

and then inflating the inner layout like this:

mInnerLayout = (LinearLayout) layoutInflater .inflate(
                                        R.layout.inner_layout, 
mContainerLayout);

This seems to work fine. I see the inner layout displayed in the
Activity that holds the containing layout. Next, I want to swap in
another inner layout, so I call:

mContainerLayout.removeAllViews();

and then I repeat the steps above. This is successful as well.

The problem is when I try to swap in and out the instantiated layouts
(the one that's returned from the inflate() call). When I call:

mContainerLayout.removeAllViews();

and then call:

mContainerLayout.addView(mInnerLayout );

I get a 'source not found' error.

My question is: how can I swap the Layouts that have already been
instantiated?

Thank you


--~--~---------~--~----~------------~-------~--~----~

3. performCompletion on AutoCompleteTextView

4. Error reading jdwp list: null

5. String Resource - name "continue"

6. ListView with the CheckBoxPreference look

7. eclipse warnings and aidl generated classes