Comments (10)
If the text is long enough, it will wrap around to the next line and nothing will be cut off. But if it's just the right length, it will get cut off.
In other words, if the string just barely fits in one line, it'll be cut off.
from balloon.
This seems solved to me. I'm not getting text or icons cut off on any of my devices. Thank you so much!
from balloon.
Hi, @gavingt could you let me know about your device information?
from balloon.
It's happening on all devices. The above screenshot is from a Nexus S API 28 emulator.
Here's my physical Pixel 3 on API 29:
And here's another emulator (Nexus 5X API 26):
All I'm doing is changing the text string in the sample app. Once it reaches a certain length, the text and icon get cut off.
from balloon.
Hmm. I built using Nexus 5X API 26, Gallaxy s7/10 but it works fine.
I will check its details more.
from balloon.
Just ran into the same issue. Glad someone reported it already. Will it come in version 1.1.7? Thank you!
from balloon.
Hi, this issue will be resolved in the next version.
Thank you :)
from balloon.
Hi, @gavingt , @NikoBoerger
It is fixed on the new version 1.1.7.
Thank you for your issue :)
from balloon.
Hi @skydoves,
thank you so much for the fix. It works great on most of my devices. However, on my Samsung Tablet I still experience the Icon being cut at the left side, and the text being cut on the right side with the version 1.1.7. Exactly like on the initial screenshot from gavingt.
This is my setting:
public static Balloon.Builder createBalloonBuilder(View view, Activity activity) {
return new Balloon.Builder(activity)
.setArrowSize((int) toDp(R.dimen._10sdp, activity))
.setArrowOrientation(ArrowOrientation.TOP)
.setArrowVisible(true)
.setArrowPosition(calculateArrowPosition(view, activity))
.setWidthRatio(1.0f)
.setPaddingTop((int) toDp(R.dimen._10sdp, activity))
.setPaddingBottom((int) toDp(R.dimen._10sdp, activity))
.setTextSize(toDp(R.dimen._12sdp, activity))
.setCornerRadius(toDp(R.dimen._4sdp, activity))
.setAlpha(0.95f)
.setIconSize((int) toDp(R.dimen._20sdp, activity))
.setPaddingLeft((int) toDp(R.dimen._10sdp, activity))
.setPaddingRight((int) toDp(R.dimen._10sdp, activity))
.setTextColor(ContextCompat.getColor(activity, R.color.colorPrimaryDark))
.setBackgroundColor(ContextCompat.getColor(activity, R.color.colorPrimary100))
.setBalloonAnimation(BalloonAnimation.FADE)
.setDismissWhenTouchOutside(true)
.setDismissWhenClicked(true);
}
from balloon.
Hi, @NikoBoerger
I just re-published the 1.1.7
version.
Please run below command and rebuild your project.
./gradlew build --refresh-dependencies
from balloon.
Related Issues (20)
- Bootlop using skydoves HOT 1
- Balloon Compose: Show balloon when the compose view is visible, without user interaction HOT 2
- 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 4
- Compose elements with `fillMaxWidth()` are cut on the edge
- Arrow is not showing HOT 8
- 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
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.