Comments (15)
@john2112 Try option 1. I recommend you delete the question from Stack because it is rather specific to a library.
from textjustify-android.
Ok i try with option1. And In JustifyTextUtils I have to change justify method into run as commented by you?
from textjustify-android.
I am getting error on int maxLines = getMaxLines(), lines = 1; its showing min API level 16. how to solve?
from textjustify-android.
Okay i see...use this version https://github.com/bluejamesbond/TextJustify-Android/blob/474fd509bc4bfb0ba642316fd8775bd3141f3e0d/src/TextViewEx.java
Someone had updated the code and I was not aware that method requires API 16 min.
from textjustify-android.
App stop working.
from textjustify-android.
Okay you have to give me more information that that. This is very sensitive problem.
from textjustify-android.
01-20 01:12:29.288: E/AndroidRuntime(1518): FATAL EXCEPTION: main
01-20 01:12:29.288: E/AndroidRuntime(1518): Process: com.info.abc, PID: 1518
01-20 01:12:29.288: E/AndroidRuntime(1518): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.info.abc/com.info.abc.History}:
android.view.InflateException: Binary XML file line #26: Error inflating class com.textjustify.TextViewEx
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2176)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.ActivityThread.access$700(ActivityThread.java:135)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.os.Handler.dispatchMessage(Handler.java:102)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.os.Looper.loop(Looper.java:137)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.ActivityThread.main(ActivityThread.java:4998)
01-20 01:12:29.288: E/AndroidRuntime(1518): at java.lang.reflect.Method.invokeNative(Native Method)
01-20 01:12:29.288: E/AndroidRuntime(1518): at java.lang.reflect.Method.invoke(Method.java:515)
01-20 01:12:29.288: E/AndroidRuntime(1518): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
01-20 01:12:29.288: E/AndroidRuntime(1518): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
01-20 01:12:29.288: E/AndroidRuntime(1518): at dalvik.system.NativeStart.main(Native Method)
01-20 01:12:29.288: E/AndroidRuntime(1518): Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class com.textjustify.TextViewEx
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
01-20 01:12:29.288: E/AndroidRuntime(1518): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.Activity.setContentView(Activity.java:1928)
01-20 01:12:29.288: E/AndroidRuntime(1518): at com.info.abc.History.onCreate(History.java:20)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.Activity.performCreate(Activity.java:5243)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
01-20 01:12:29.288: E/AndroidRuntime(1518): ... 11 more
01-20 01:12:29.288: E/AndroidRuntime(1518): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.textjustify.TextViewEx" on path: DexPathList[[zip file
"/data/app/com.info.abc-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.info.abc-2, /system/lib]]
01-20 01:12:29.288: E/AndroidRuntime(1518): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-20 01:12:29.288: E/AndroidRuntime(1518): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
01-20 01:12:29.288: E/AndroidRuntime(1518): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
01-20 01:12:29.288: E/AndroidRuntime(1518): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
01-20 01:12:29.288: E/AndroidRuntime(1518): ... 22 more
from textjustify-android.
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.textjustify.TextViewEx"
Please review your files and double check if the files are being pointed at the right packages. Since you are using an older version, please update any references in the library that might have any unsafe calls (which should be as simple as looking for any Errors in eclipse).
from textjustify-android.
Working But last line of text is display half. Half portion of last line cut.
from textjustify-android.
#6 Temporary solution.
from textjustify-android.
I dont want to delete my post from stackoverflow because I want the problems I face others users not face. so I answer my own question. Please dont mind.
from textjustify-android.
@john2112 No problem! I am glad your problem is resolved. Please do your best to upgrade to the latest files because it provides major performance improvements - but this should give you a temporary solution.
from textjustify-android.
Thank you very much. And one last question I am creating classes TextViewEx.java and TextJustifyUtils.java in my project. How to add this project as lib in my project? If possible can you provide me any link how to do this. I am really thankful to you.
from textjustify-android.
@john2112 I am not so sure what you mean. That is a question might want to ask Stackoverflow.
from textjustify-android.
Ok i will. Thank you for your help.
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.