Comments (2)
Hey @Afolayan, it seems that you're using very old version of this library. Would you try to build again with the latest version (1.6.3)? Thanks!
from balloon.
Hey @Afolayan, the recent release version, 1.6.4, contains some new APIs, such as onBalloonWindowInitialized
, and onComposedAnchor
. You can utilize them as seen in the code below:
var balloonWindow1: BalloonWindow? by remember { mutableStateOf(null) }
Balloon(
modifier = Modifier.padding(20.dp),
builder = builder,
onBalloonWindowInitialized = { balloonWindow1 = it },
onComposedAnchor = { balloonWindow1?.showAlignTop() },
balloonContent = {
Text(
text = "Now, you can edit your profile!",
textAlign = TextAlign.Center,
color = Color.White,
)
},
) {
Button(
modifier = Modifier.size(160.dp, 60.dp),
onClick = { balloonWindow1?.showAlignTop() },
) {
Text(text = "showAlignTop")
}
}
..
Thank you for your reporting, and please reopen this issue if you still face the same problem after applying my suggestion.
from balloon.
Related Issues (20)
- android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@1a464cb is not valid; is your activity running? HOT 6
- Bootlop using skydoves HOT 1
- Showing balloon while typing HOT 6
- Content window right spacing truncating inside widget
- Working with ImageSpan HOT 6
- Check box inside layout custom menu. HOT 1
- Show next and previous item data without dismiss in recyclerview HOT 2
- Prevent Balloon on theme changed HOT 1
- Compose: provide the way to get the end of the sequentially showed balloons. Still not working after 1.6.3 HOT 3
- Shadow have its left and right shadow clipped HOT 5
- Getting some stuttering when doing fast scrolling. HOT 1
- The balloon is swallowing keyboard input. HOT 2
- can i set width and height dynamically? HOT 3
- Compose Balloon position is misplace HOT 6
- Compose elements with `fillMaxWidth()` are cut on the edge HOT 2
- Arrow is not showing HOT 9
- Corner radius not set properly HOT 2
- PopupWindow not seen By Appium HOT 4
- Make popup reappear in `onResume` after being dismissed in `onPause` 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 balloon.