navabi / justifiedtextview Goto Github PK
View Code? Open in Web Editor NEWa custom view that simulate justified text for you
a custom view that simulate justified text for you
in center align the text start drawing from the center
Hello,
I've set to the JustifiedTextView a text from a txt file, and there's a simple link which is not being shown within the View. It's simply ignored. It would be nice to detect links and make them clickable like a normal TextView does with:
Linkify.addLinks(txtViewEx, Linkify.WEB_URLS);
Thanks
Please add this library to gradle, it seems to be the only working JustifyText library which supports RTL.
سلام،
دليل اينكه متن را به صورت كد
html
نشون نداديد چي بود؟ اينطوري با
css
خيلي راحت مي شد اين كار را كرد و تنظيمات استايل نوشته هم كه از طريق
xml
دريافت مي كنيد را هم مي شد ته كد
css
اضافه كرد،
با تشكر
the last row of the text is justified instead of left-aligned.
In order to fix this you can replace if (needScale(line)) with if (i != layout.getLineCount() - 1 && needScale(line)) in the onDraw method.
In my app i have a 100 of lines to be setted in justified textview but it displays for a large view but my wish to show 5 lines first when user scrolled on the textview it needs to be scrolled. Thanks in Advance
damet garm kheili bahal bod
The height is considered to be incorrect
class JustifiedTextView
line
mHeight+= getPaddingRight() + getPaddingLeft() ;
public void setMeasuredDimentions(int lineListSize,int lineHeigth, int lineSpace)
{
int mHeight=lineListSize*(lineHeigth+lineSpace)+lineSpace;
mHeight+= getPaddingRight() + getPaddingLeft() ;
setMeasuredViewHeight(mHeight);
setMeasuredViewWidth(getWidth());
}
Hi
I use this component in a listview but text will disappear when I scroll my listview!
please solve the problem
Hi
Is there any way to add spans into justified textview???
سلام
متدهای کتابخانه کار نمیکند
Size of text will not changed after orientation of page changed!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.