Coder Social home page Coder Social logo

Screenshot not Capturing Overlay about falcon HOT 5 CLOSED

jraska avatar jraska commented on August 25, 2024
Screenshot not Capturing Overlay

from falcon.

Comments (5)

jraska avatar jraska commented on August 25, 2024

Hello Rowland,

Falcon takes screenshot of the Activity you provide into. If multiwindow means multi-activity, then Falcon currently takes screenshot only of the activity you provide as a parameter.

Which activity owns the overlaying window? The issue seems like Falcon makes screenshot of other than the activity with the overlay.

Thanks

from falcon.

RowlandOti avatar RowlandOti commented on August 25, 2024

Hi, @jraska this is how i use it:

<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/lnCoord"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.kokonetworks.android.home.dashboard.DashboardActivity">


    <include
        android:id="@+id/contentDashboard"
        layout="@layout/content_dashboard" />

        <!--Any Fragment inserted as an overlay on dashboard-->
        <FrameLayout
            android:id="@+id/dynamicFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:visibility="gone" />

    <ImageView
        android:id="@+id/blurDialogView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"
        />


</androidx.coordinatorlayout.widget.CoordinatorLayout>

override fun blurDialog() {
        blurDialogView!!.visibility = View.VISIBLE

        Glide.with(this).load(Falcon.takeScreenshotBitmap(this))
            .apply(bitmapTransform(BlurTransformation(25, 3)))
            .into(blurDialogView!!)
    }

It just does not show the FrameLayout overlay that holds the Fragment, the host being this same Activity.

from falcon.

jraska avatar jraska commented on August 25, 2024

Hmm, with assumption blurDialogView is the one you miss on the screenshot, maybe the issue could be that the visibility is set, but the view is not drawn yet.

Visibility is visible, but unless onMeasure and other callbacks happen, this view will not be visible, because it synchronously does not draw itself. You could give it a try by taking the screenshot with one second delay or something like that.

If this still does not work, I would need working sample to be able to reproduce the issue.

Thanks

Josef

from falcon.

jraska avatar jraska commented on August 25, 2024

Hello Rowland, do you still experience the issue?

from falcon.

jraska avatar jraska commented on August 25, 2024

Closing due to inactivity

from falcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.