Code Monkey home page Code Monkey logo

Comments (15)

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

@john2112 Try option 1. I recommend you delete the question from Stack because it is rather specific to a library.

from textjustify-android.

john2112 avatar john2112 commented on July 28, 2024

Ok i try with option1. And In JustifyTextUtils I have to change justify method into run as commented by you?

from textjustify-android.

john2112 avatar john2112 commented on July 28, 2024

I am getting error on int maxLines = getMaxLines(), lines = 1; its showing min API level 16. how to solve?

from textjustify-android.

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

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.

john2112 avatar john2112 commented on July 28, 2024

App stop working.

from textjustify-android.

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

Okay you have to give me more information that that. This is very sensitive problem.

from textjustify-android.

john2112 avatar john2112 commented on July 28, 2024

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.

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

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.

john2112 avatar john2112 commented on July 28, 2024

Working But last line of text is display half. Half portion of last line cut.

from textjustify-android.

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

#6 Temporary solution.

from textjustify-android.

john2112 avatar john2112 commented on July 28, 2024

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.

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

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

john2112 avatar john2112 commented on July 28, 2024

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.

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

@john2112 I am not so sure what you mean. That is a question might want to ask Stackoverflow.

from textjustify-android.

john2112 avatar john2112 commented on July 28, 2024

Ok i will. Thank you for your help.

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.