Skip to main content
usage
Source Link

I have implemented Android-like toast for my project and decided to share it with you! Enjoy: Toast LibGDX (GitHub).

Easy to use:

  1. Include Toast in your LibGDX project

  2. Create ToastFactory for your toasts (using Builder):

    Toast.ToastFactory toastFactory = new Toast.ToastFactory.Builder()
            .font(font)
            .build();
    
  3. Create toast: Toast toast = toastFactory.create("Hello world!", Toast.Length.LONG);

  4. Display it in render(): toast.render(Gdx.graphics.getDeltaTime());

I have implemented Android-like toast for my project and decided to share it with you! Enjoy: Toast LibGDX (GitHub)

I have implemented Android-like toast for my project and decided to share it with you! Enjoy: Toast LibGDX (GitHub).

Easy to use:

  1. Include Toast in your LibGDX project

  2. Create ToastFactory for your toasts (using Builder):

    Toast.ToastFactory toastFactory = new Toast.ToastFactory.Builder()
            .font(font)
            .build();
    
  3. Create toast: Toast toast = toastFactory.create("Hello world!", Toast.Length.LONG);

  4. Display it in render(): toast.render(Gdx.graphics.getDeltaTime());

Source Link

I have implemented Android-like toast for my project and decided to share it with you! Enjoy: Toast LibGDX (GitHub)