Giter VIP home page Giter VIP logo

Comments (8)

Aghajari avatar Aghajari commented on August 23, 2024

Hi @fiftyonemoon ,
i think i didn't understand what you mean,
actually it won't show a toast when you click on sticker tab, it will open the Stickers tab by default...

I need more details about what you wanna do..

from axemojiview.

fiftyonemoon avatar fiftyonemoon commented on August 23, 2024

WhatsApp Image 2020-10-16 at 3 38 49 PM
see in this image. how to display it in chat?

from axemojiview.

Aghajari avatar Aghajari commented on August 23, 2024

Aha!
you must add an ImageView to your layout (RecyclerView) and load your sticker resource on it!

the toast is showing the resource id of the clicked sticker.

from axemojiview.

fiftyonemoon avatar fiftyonemoon commented on August 23, 2024

Yaa but see this!

stickerView.setOnStickerActionsListener(new OnStickerActions() {

            @Override
            public void onClick(View view, Sticker sticker, boolean fromRecent) {
                Toast.makeText(view.getContext(),sticker.toString()+" clicked!", Toast.LENGTH_SHORT).show(); 
                imageView.setImageResource( " WHAT I DO HERE? " );
            }

            @Override
            public boolean onLongClick(View view, Sticker sticker, boolean fromRecent) {
                return false;
            }
        });

Here onClickMehtod have 3 parmas but how to load in imageview? I tried but nothing happened.
By the way response time is great.

from axemojiview.

fiftyonemoon avatar fiftyonemoon commented on August 23, 2024

Ok Amir.
I solved it by just adding imageView.setImageResource((int) Sticker.tostirng());
Thank you.

from axemojiview.

Aghajari avatar Aghajari commented on August 23, 2024

Well done!
Note: it's better to use getData instead of toString, imageView.setImageResource((int) sticker.getData());

from axemojiview.

fiftyonemoon avatar fiftyonemoon commented on August 23, 2024

Ok Amir.
Can i text you on Telegram in future? if i need some help?
TelegramID : @KingAmir272 is it yours?
Remember me if i text you 😂😂😂

from axemojiview.

Aghajari avatar Aghajari commented on August 23, 2024

Yes sure,
Just mention this conversation :D

from axemojiview.

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.