Coder Social home page Coder Social logo

Comments (8)

santhoshpr avatar santhoshpr commented on July 22, 2024 1

@Slake07 Thanks for the solution it seems to work now

@ponnamkarthik You can close this issue now.

from richlinkpreview.

santhoshpr avatar santhoshpr commented on July 22, 2024

Am also facing the same issue
Am using RichLinkViewSkype and it is getting reset and blank view is set when we scroll through the recycler view for the second time !

The above solution by Slake07 seems to work thanks

from richlinkpreview.

Mahato12nikhil avatar Mahato12nikhil commented on July 22, 2024

Actually here I am not using RichLinkview class as I am using Richpreview class and populating values to my own xml and getting same issues.

from richlinkpreview.

Mahato12nikhil avatar Mahato12nikhil commented on July 22, 2024

I solved it!!!

from richlinkpreview.

notchdesign avatar notchdesign commented on July 22, 2024

hey, do you guys just manually edited the code while downloading? I have implemented and the code is only readable? know any way bypassing? Or I also implement it manually?

from richlinkpreview.

notchdesign avatar notchdesign commented on July 22, 2024

@santhoshpr can you tell me how you edited the code? I am not familiar with manual installation.

from richlinkpreview.

notchdesign avatar notchdesign commented on July 22, 2024

@Mahato12nikhil can you help me build is not working for me

from richlinkpreview.

mahbub-java avatar mahbub-java commented on July 22, 2024

When in recycleview link fetch every time when scroll. So I also use a static map to hold url with metadata and check if previous url already successfully fetch for metadata or not.

private static Map<String, MetaData> linkMap=new HashMap<>();

public void setLink(String url, final ViewListener viewListener) {
        MetaData data = linkMap.get(url);
        if(data == null) {
            main_url = url;
            RichPreview richPreview = new RichPreview(new ResponseListener() {
                @Override
                public void onData(MetaData metaData) {
                    meta = metaData;

                    if (!meta.getTitle().isEmpty() || !meta.getTitle().equals("")) {
                        viewListener.onSuccess(true);
                        linkMap.put(url, metaData);
                    }

                    setData();
                }

                @Override
                public void onError(Exception e) {
                    viewListener.onError(e);
                }
            });
            richPreview.getPreview(url);
        }else{
            main_url = url;
            meta = data;
            viewListener.onSuccess(true);
            setData();
        }
    }

from richlinkpreview.

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.