Skip to content

Not working if it has weblink from server #43

Description

@hardikJoshi123

Hello,

Thanks for great library, but can you please suggest how to use this if it has weblinks? ("Go checkout my website http://google.com")

If no weblink, it working awesome.

Thanks!

Activity

  1. AndroidDeveloperLB commented on Jul 14, 2017

    @AndroidDeveloperLB
    Owner
  2. hardikJoshi123 commented on Jul 14, 2017

    @hardikJoshi123
    Author

    Hello, thanks for your reply. So its an bug in library? Can we have quick fix if its not that much hard to?

    Thanks!

  3. AndroidDeveloperLB commented on Jul 14, 2017

    @AndroidDeveloperLB
    Owner
  4. hardikJoshi123 commented on Jul 14, 2017

    @hardikJoshi123
    Author

    OH..!! Okay!

  5. AndroidDeveloperLB commented on Jul 14, 2017

    @AndroidDeveloperLB
    Owner

    Maybe explain the issue more, with a sample. This way others might help.

  6. hardikJoshi123 commented on Jul 17, 2017

    @hardikJoshi123
    Author

    Not required any customization, just set string having weblink + normal text. You will get issue. Not sure why nobody faced same issue till now.

  7. AndroidDeveloperLB commented on Jul 17, 2017

    @AndroidDeveloperLB
    Owner

    Just this, for example:

    textView.setText("Go checkout my website http://google.com");

    ?

  8. hardikJoshi123 commented on Jul 17, 2017

    @hardikJoshi123
    Author

    Yes Right. And this string in from server.

  9. hardikJoshi123 commented on Jul 19, 2017

    @hardikJoshi123
    Author

    Here is code :

    <com.lb.auto_fit_textview.AutoResizeTextView
            android:id="@+id/txtblasttexttwoline"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:autoLink="web"
            android:ellipsize="end"
            android:gravity="center|left"
            android:includeFontPadding="false"
            android:linksClickable="true"
            android:scrollHorizontally="false"
            android:textSize="20dp"
            android:visibility="visible" />
    
     txtblasttexttwoline= ( TextView) findViewById(R.id.txtblasttexttwoline);
            txtblasttexttwoline.setEllipsize(TextUtils.TruncateAt.END);
            txtblasttexttwoline.setMovementMethod(LinkMovementMethod.getInstance());
            txtblasttexttwoline.setText("I'm at a company party right now with my work friends! Yay! https://www.google.co.in/");
            txtblasttexttwoline.setTextSize(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, maxHeight, getResources().getDisplayMetrics()));
    

    notworking

    IF text doesnt have links. Here is output :

    working

  10. hardikJoshi123 commented on Jul 24, 2017

    @hardikJoshi123
    Author

    Hello @AndroidDeveloperLB did you get my query? Any help?

  11. AndroidDeveloperLB commented on Jul 24, 2017

    @AndroidDeveloperLB
    Owner

    Sorry I had a car accident and I have other things to do currently, plus as I told you I will probably say that I have no idea how to fix it, as I'm not the main author of this code (I only improved it a bit).
    Maybe later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions