Skip to content Skip to sidebar Skip to footer

Ontouchevent In A Baseadapter Android

In my program I must insert this onTouchEvent method in a BaseAdapter component: public class FlipAdapter extends BaseAdapter { ... public boolean onTou

Solution 1:

Follow Like this:

publicclassYourClassNameextendsActivity
{

   @OverrideprotectedvoidonCreate(Bundle savedInstanceState) 
       {
        .......
        } 

    classFlipAdapterextendsBaseAdapter
    {
            //Now you can access everything from the activity.
    } 
 } 

Hope this will help you.

Post a Comment for "Ontouchevent In A Baseadapter Android"