[android-developers] ExpandableListView and ListView click child event not working..

2011-10-05 Thread Naveen
Hello Developers,

I am facing a different type of issue, i have a layout which
contains   One expandableListview and another Listview , i have
designed this layout using framelayout now all click events works for
expandable and listview but expandablechild and list child click
events not working trying to find the issue but here each entry is
fine on layout only click event on listchild and expandable child is
not working...

Please check what i am missing



expList.setOnChildClickListener(new OnChildClickListener() {

public boolean onChildClick(ExpandableListView 
arg0, View arg1,
int arg2, int arg3, long arg4) {


Log.i("clicked ","clicked");

Toast.makeText(getApplicationContext(),
"Child ItemClicked " + 
arg2 + " " + arg3,

Toast.LENGTH_SHORT).show();


return false;
}
});
//movie list click here
l1.setOnItemClickListener(new AdapterView.OnItemClickListener() 
{
public void onItemClick(AdapterView a, View v, int 
position, long
id) {
Log.i("listview", "clicked1");

Toast.makeText(getApplicationContext(),
"Child ItemClicked " + position 
,
Toast.LENGTH_SHORT).show();

}
});

-- 
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


Re: [android-developers] ExpandableListView and ListView click child event not working..

2011-10-05 Thread NaveenShrivastva
Here :

   @Override
public boolean isChildSelectable(int arg0, int arg1) {

System.out.println("Child selected"+arg0+":"+arg1); 
return true;
}

is working fine ...but issue with expandablelistchild click and
listview child click,

On Thu, Oct 6, 2011 at 11:50 AM, Naveen  wrote:
> Hello Developers,
>
> I am facing a different type of issue, i have a layout which
> contains   One expandableListview and another Listview , i have
> designed this layout using framelayout now all click events works for
> expandable and listview but expandablechild and list child click
> events not working trying to find the issue but here each entry is
> fine on layout only click event on listchild and expandable child is
> not working...
>
> Please check what i am missing
>
>
>
>                expList.setOnChildClickListener(new OnChildClickListener() {
>
>                                public boolean onChildClick(ExpandableListView 
> arg0, View arg1,
>                                                int arg2, int arg3, long arg4) 
> {
>
>
>                                        Log.i("clicked ","clicked");
>
>                                        Toast.makeText(getApplicationContext(),
>                                                        "Child ItemClicked " + 
> arg2 + " " + arg3,
>                                                        
> Toast.LENGTH_SHORT).show();
>
>
>                                        return false;
>                                }
>                        });
> //movie list click here
>                l1.setOnItemClickListener(new 
> AdapterView.OnItemClickListener() {
>                        public void onItemClick(AdapterView a, View v, int 
> position, long
> id) {
>                                Log.i("listview", "clicked1");
>
>                                Toast.makeText(getApplicationContext(),
>                                                "Child ItemClicked " + 
> position ,
>                                                Toast.LENGTH_SHORT).show();
>
>                        }
>                });
>
> --
> 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

-- 
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