Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Mobile Development
  3. Android
  4. How to set toast time manually?

How to set toast time manually?

Scheduled Pinned Locked Moved Android
questiontutorial
5 Posts 3 Posters 14 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pankaj788
    wrote on last edited by
    #1

    I want to set the toast display time 20 second. How can I set the toast time manually?

    D L 2 Replies Last reply
    0
    • P pankaj788

      I want to set the toast display time 20 second. How can I set the toast time manually?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Toast time? Please explain. :confused:

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      L 1 Reply Last reply
      0
      • D David Crow

        Toast time? Please explain. :confused:

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Toasts remain on the screen for a fixed time (SHORT or LONG). See http://developer.android.com/guide/topics/ui/notifiers/toasts.html[^]. AFAIK it is not possible to change that.

        D 1 Reply Last reply
        0
        • P pankaj788

          I want to set the toast display time 20 second. How can I set the toast time manually?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I do not think this is possible, Toasts only allow one of two choices for the time interval.

          1 Reply Last reply
          0
          • L Lost User

            Toasts remain on the screen for a fixed time (SHORT or LONG). See http://developer.android.com/guide/topics/ui/notifiers/toasts.html[^]. AFAIK it is not possible to change that.

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Richard MacCutchan wrote:

            Toasts remain on the screen for a fixed time (SHORT or LONG).

            I didn't know if the OP was referring to that, or some sort of delay before the toast is actually displayed.

            Richard MacCutchan wrote:

            AFAIK it is not possible to change that.

            Correct, as those equate to 2000 and 3500 milliseconds respectively.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups