I was adding some ads to my app with the admod sdk, and I wondered if I can hide the banner after clicking on it, so the user could enjoy the app without ads. I searched it, but I didnt found any proper answer.
I thought about using OnClickListener
and OnTouchListener
, but neither of those worked.
I added something like this:
adView.setOnTouchListener(new OnTouchListener(){
public boolean onTouch(View p1, MotionEvent p2)
{
// TODO: Implement this method
return false;
}
public boolean onTouch(View v)
{
mainLayout.removeView(adView);
return true;
}
});