Hi manas,

It is actually a single list view, where we don't press the call icon
when the parent is pressed.
Just add a onClickListener for your view (i.e., similar to call
button) in your ListActivity and implement the desired function in
that. And for eg. if you are using a ImageView, then just create a
class which extends ImageView and override "setPressed" function.
Eg:

   @Override
    public void setPressed(boolean pressed) {
        // If the parent is pressed, do not set to pressed.
        if (pressed && ((View) getParent()).isPressed()) {
            return;
        }
        super.setPressed(pressed);
    }

So, this doen't press your image view, when the parent is pressed.
I hope this helps you.

Thanks,
Deepak

On Nov 20, 4:08 pm, manas <[email protected]> wrote:
> We are trying to create a listview exactly similar to 'call log
> listview' of 'contact' application (which is a default one).
> There is one listview item but two clickable controls.
> 1. Left one - for viewing call log details
> 2. Right one - for calling that person
>
> Any pointer on how to achieve that?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to