-2
  1. i want to make an ad pop up when a "read more" button is clicked using android studio. the app is consist of an information like a list of article that should be click the read more if want to read full article

  2. and then when the user click the button, the ad will appear, but the ad cannot be closed until the button of the ad is clicked

the uncloseable ad appearance is like this:

the uncloseable ad appearance is like this

  1. finally when ad already clicked, the user will be redirected to play store or website, so the user can back again to the app and ad can be closed

the closeable ad appearance is like this:

the closeable ad appearance is like this

Paolo Forgia
  • 6,572
  • 8
  • 46
  • 58
Ridhuan
  • 1
  • 1

1 Answers1

0

What you need is a PopupWindow. Read the docs here - https://developer.android.com/reference/android/widget/PopupWindow.html

You can customize its appearance depending on your requirements. Similar query has been already answered here- How to make a simple android popup window?

Kartik Shandilya
  • 3,796
  • 5
  • 24
  • 42