Comments (7)
Hi, @GuillemRoca , @rajal2009
It is fixed on version 1.1.7.
Thank you for your issue! :)
from balloon.
@GuillemRoca @rajal2009
Hi, I checked this issue just now and I will try to fix it soon!
If you have any idea, please let me know or make a pull request! Thank you for your issue :)
from balloon.
@rajal2009
Also, I checked the setArrowColor
method is not working when the color is white
.
It will be fixed on the next release! Thank you for your issue :)
from balloon.
I've finally had time to test it and it works as intended! Great work and great library! :D
from balloon.
Hello @skydoves!
After a brief investigation, I believe this could be caused by this.
In the method:
private fun initializeBalloonListeners() {
this.onBalloonClickListener = builder.onBalloonClickListener
this.onBalloonDismissListener = builder.onBalloonDismissListener
this.onBalloonOutsideTouchListener = builder.onBalloonOutsideTouchListener
this.bodyView.setOnClickListener {
this.onBalloonClickListener?.onBalloonClick(it)
if (builder.dismissWhenClicked) dismiss()
}
with(this.bodyWindow) {
setOnDismissListener { onBalloonDismissListener?.onBalloonDismiss() }
setBackgroundDrawable(ColorDrawable(Color.WHITE))
isOutsideTouchable = true
setTouchInterceptor(object : View.OnTouchListener {
@SuppressLint("ClickableViewAccessibility")
override fun onTouch(view: View, event: MotionEvent): Boolean {
if (event.action == MotionEvent.ACTION_OUTSIDE) {
if (builder.dismissWhenTouchOutside) {
[email protected]()
}
onBalloonOutsideTouchListener?.onBalloonOutsideTouch(view, event)
return true
}
return false
}
})
}
}
I've changed the setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
to White and now the elevation is displayed correctly! 🍾
The bad thing is that it messes with the arrow and the background set in the API. Maybe you can help me get to the final solution.
from balloon.
Yes, I am also using setElevation and setArrowColor but not working.
it's just display normal background without elevation and arrow color can not be changed
from balloon.
Awesome! I will take a look and test it! 😄
from balloon.
Related Issues (20)
- 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
- ArrowOrientation.BOTTOM and END not working in M3 ModalBottomSheet
- request a Gaussian Blur overlay HOT 1
- How can I blur the overlay? HOT 1
- Support Compose Multiplatform
- Balloon content not visible in dark theme HOT 6
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.