Comments (5)
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.
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.
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.
Hello Rowland, do you still experience the issue?
from falcon.
Closing due to inactivity
from falcon.
Related Issues (20)
- Crash when call not in UI Thread HOT 2
- FalconSpoon class present in 2.0.0 release HOT 1
- java.lang.NoClassDefFoundError: Failed resolution of: Lcom/squareup/spoon/SpoonRule HOT 4
- Update Readme HOT 2
- Crash: onMeasure() did not set the measured dimension by calling setMeasuredDimension() HOT 4
- Usage of Undocumented API (API 29) HOT 10
- Impossible to capture shadows around components HOT 3
- Shading or packaging Spoon dependency HOT 4
- Falcon enhancement to work with AirBnb's Lottie animations HOT 4
- can not cature webview HOT 2
- Add Kotlin examples
- Fails to capture screenshot with hardware bitmaps HOT 13
- Migrate to Maven Central HOT 8
- How to take screenshot of textureview alongwith otherviews ? HOT 1
- 高德地图使用问题 HOT 1
- react-native webview canvas Black screen HOT 1
- Values are not getting reflected in screenshot for AutoCompleteTextView and TextInputEditText HOT 2
- PreviewView HOT 1
- com.jraska.falcon.Falcon$UnableToTakeScreenshotException: Unable to take screenshot to file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falcon.