I want to use MaterialTapTargetPrompt for an in-app tutorial.
When I want to highlight a Button
from BottmNavView
, it don't overlay the bottom side of the screen like is shown in the image from left.
If I open the keyboard (pressing on the + Button
), the screen is resizing and the Tap Target cover the bottom side of the screen like is shown in the image from right.
I think is the problem is with screen because if I manually add position of Target
, I get same results.
Image with Coordinatesas Target
The code is this:
fun showTapTargetPrompt(view: View) {
val builder = MaterialTapTargetPrompt.Builder(this)
.setTarget(view)
// .setTarget(260f, 1800f)
.setPrimaryText("Prim text")
.setSecondaryText("Second Text")
.setAutoDismiss(false)
.setPromptBackground(DimmedPromptBackground())
builder.show()
}