ichengc / android-textview-multiline-ellipse Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-textview-multiline-ellipse
Automatically exported from code.google.com/p/android-textview-multiline-ellipse
This code is bug prone (line 514, method
while( input.charAt(pos) != ' ' ) {
pos--;
}
Under some cases, if there's no space at all, you can easily go below the
range. The while() should be rather:
while( (pos >= 0) && (input.charAt(pos) != ' ' ) )
Original issue reported on code.google.com by [email protected]
on 27 Feb 2012 at 11:17
Hi, I'm currently using your library in my project but I found it lacks the
ability to be used in XML layouts. Here I attach a patch I made for allowing
this.
Thanks for your work.
Alessio
Original issue reported on code.google.com by venator85
on 2 Dec 2010 at 8:03
Attachments:
The project home sais the Code license is "GNU Lesser GPL" but the
TextViewMultilineEllipse.java file sais it is "GNU General Public License":
http://code.google.com/p/android-textview-multiline-ellipse/
http://code.google.com/p/android-textview-multiline-ellipse/source/browse/trunk/
TextViewMultilineEllipse.java
Please clarify which one is the correct license.
Original issue reported on code.google.com by [email protected]
on 13 Mar 2012 at 10:25
setTypeface() could be implemented like so:
public void setTypeface(Typeface tf) {
if (mTextPaint.getTypeface() != tf) {
mTextPaint.setTypeface(tf);
requestLayout();
invalidate();
}
}
Original issue reported on code.google.com by [email protected]
on 28 Apr 2011 at 2:27
init() lacks
mText = "";
which leads to NullPointerException if you use this widget in your XML but do
not provide android:text there
Original issue reported on code.google.com by [email protected]
on 5 Mar 2012 at 7:46
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.