But how can I create, those tow views, with like that divisor that has between.
Em terça-feira, 23 de novembro de 2010 04h44min59s UTC-3, deepak escreveu: > > Hi manas, > > I forgot to mention 1 more thing. In the xml also, instead of > ImageView give the name of the class which extends ImageView. > > Thanks, > Deepak > > On Nov 23, 12:38 pm, deepak <deepakraor1...@gmail.com> wrote: > > 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 <manas.prince...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en