Android Question Imageview 'ontop' of Activity

FrankDev

Active Member
Licensed User
Longtime User
Hi

Is it possible to place a view (imageview) at the very front of an activity?
Ok, now it might get a bit more complicated.
I create a new view via a Java sub. Unfortunately it is always in the foreground. (in its own 'FrameLayout')

how can I now set a normal imageview 'onTop'.
So it's more or less like a dialogue.

Best regards
Frank
 

FrankDev

Active Member
Licensed User
Longtime User
Hello

I load my views into the activity with

Activity.LoadLayout("layout_main")

then I fade in a video window.

B4X:
((FrameLayout)mainActivity.getWindow().getDecorView()).addView(this.mCustomView, new FrameLayout.LayoutParams(1000, 500));

The video window is then above all elements

I had already tried the 'elevation'.
the video window still remains in the foreground.

I actually need something like a mouse.
Can I somehow activate and control it in the webview?

regards
Frank
 
Upvote 0

FrankDev

Active Member
Licensed User
Longtime User
I am loading a video page into the webview.
then I enlarge the video to fullscreen.
The video then goes 'all the way to the front'.

I have to use the video player of the page, because I don't have a direct link to the video.
The player on the page also handles the advertising.

Is it not possible to activate something like a 'mouse' in the webview ?

Regards
Frank
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…