Comments (9)
I will look into this and let you know soon. Please do remind me again if I don't respond in a couple days. As always, screenshots and sample inputs make my life a lot easier and I can try to push a fix faster.
from textjustify-android.
Ok I am implementing your code in my app. You can search my app with name vishku. Its laughing buddha app. In this app in history you can see spacing b/w words. Please help me as soon as possible. Thank you for your response.
from textjustify-android.
Hope you got idea from that text. If you like I send you screen shot but I think from there you easily notice.
from textjustify-android.
@john2112 I don't have an Android device with me, if you can post a screenshot, it would be great. Thank you.
from textjustify-android.
In some words you can check space. There is so much space. So text not looks nice. please help me.
from textjustify-android.
The algorithm for TextViewEx is considered to be greedy. It attempts to squeeze as many words as it can in 1 line before moving onto the next. In this case, the problem is happening because your font size is too big. I am not sure if there is a way to fix this other than reducing the fontsize. My question to you is, how do you want it to look like?
Note. There is a bug somewhere in my code that is preventing the full greediness, nevertheless your content will not be drastically changed if at all.
from textjustify-android.
I know font size is problem. But I hope there is workaround in your algorithm to solve this. And I want my text look like as the following lines are looking in above image-
followers of the chan school would come to teach that all beings
from textjustify-android.
I think you'll get the same result with any other lib on any other platform. For example this three words from above: "are already enlightened" - can not fit into one line with the current font size. So you should either choose a smaller font size or use shorter words :)
from textjustify-android.
@atfire is correct. Refer to updated version now. It has major optimizations.
from textjustify-android.
Related Issues (20)
- How to set RTL for Arabic Text
- Extra space in AlertDialog
- max line limit HOT 1
- com.bluejamesbond.text.StringDocumentLayout$PlainDocumentException: Cannot fit word(s) into one line. Font size too large? HOT 2
- is Html text Support ?
- bug java.lang.IllegalArgumentException:
- How to change the text size? HOT 3
- java.lang.IndexOutOfBoundsException HOT 2
- Crash on Android 7.X
- DocumentViews in LinearLayout and EventListeners
- Background Color does not change with Spannables, please help.
- DocumentView has a problem with ExpandableListView
- RTL supprot for documentView_textFormat="plain"
- Broken on API 21 when change portrait to landscape positions
- Hyphenate license
- Image Span test does not work
- Report crash .onMeasure
- How to use android:ellipsize="end" attributes????
- bug: java.lang.IllegalArgumentException: width and height must be > 0
- onClick in Clickablespan is not work 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 textjustify-android.