Code Monkey home page Code Monkey logo

Comments (9)

mathew-kurian avatar mathew-kurian commented on July 28, 2024

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.

john2112 avatar john2112 commented on July 28, 2024

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.

john2112 avatar john2112 commented on July 28, 2024

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.

mathew-kurian avatar mathew-kurian commented on July 28, 2024

@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.

john2112 avatar john2112 commented on July 28, 2024

screenshot_2014-04-08-13-09-54

In some words you can check space. There is so much space. So text not looks nice. please help me.

from textjustify-android.

mathew-kurian avatar mathew-kurian commented on July 28, 2024

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.

john2112 avatar john2112 commented on July 28, 2024

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.

atfire avatar atfire commented on July 28, 2024

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.

mathew-kurian avatar mathew-kurian commented on July 28, 2024

@atfire is correct. Refer to updated version now. It has major optimizations.

from textjustify-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.