Back to project page MyTwitter-Android.
The source code is released under:
Apache License
If you think the Android project MyTwitter-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.fukata.android.mytw.util; /*www . j a v a2s . co m*/ public class StringUtils { public static String strimwidth(String str, int width, String continueString) { String ret = ""; if (str == null) { return ret; } if (continueString == null) { continueString = ""; } if (str.length() <= width) { return str; } else { return str.substring(0, width - continueString.length()) + continueString; } } }