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
  1. Home
  2. Mobile Development
  3. Android
  4. Replacement of depracted interface in android

Replacement of depracted interface in android

Scheduled Pinned Locked Moved Android
7 Posts 3 Posters 0 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.
  • A Offline
    A Offline
    aahamdan
    wrote on last edited by
    #1

    Hi Experts, I am a new to the android, and I am trying to work on Tab Action bar, but I find the below interface was deprecated , so what is the replacement, and what happen if I use deprecated interface?

    ActionBar.TabListener
    public static interface ActionBar.TabListener
    android.support.v7.app.ActionBar.TabListener

    L 1 Reply Last reply
    0
    • A aahamdan

      Hi Experts, I am a new to the android, and I am trying to work on Tab Action bar, but I find the below interface was deprecated , so what is the replacement, and what happen if I use deprecated interface?

      ActionBar.TabListener
      public static interface ActionBar.TabListener
      android.support.v7.app.ActionBar.TabListener

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

      The first paragraph of the documentation page (ActionBar.TabListener | Android Developers[^]) gives a link to some suggested alternatives.

      A 1 Reply Last reply
      0
      • L Lost User

        The first paragraph of the documentation page (ActionBar.TabListener | Android Developers[^]) gives a link to some suggested alternatives.

        A Offline
        A Offline
        aahamdan
        wrote on last edited by
        #3

        Thank you, But I checked the link common navigation pattern in the same page, but I didn't find any code, it is just an information. Regards,

        L 1 Reply Last reply
        0
        • A aahamdan

          Thank you, But I checked the link common navigation pattern in the same page, but I didn't find any code, it is just an information. Regards,

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

          Yes, because it is just suggested patterns. You are expected to decide what you wish to implement and write the code yourself.

          A 1 Reply Last reply
          0
          • L Lost User

            Yes, because it is just suggested patterns. You are expected to decide what you wish to implement and write the code yourself.

            A Offline
            A Offline
            aahamdan
            wrote on last edited by
            #5

            I would like to use Tab bar, so if I use deprecated interface, is there any problem?

            D L 2 Replies Last reply
            0
            • A aahamdan

              I would like to use Tab bar, so if I use deprecated interface, is there any problem?

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

              aahamdan wrote:

              so if I use deprecated interface, is there any problem?

              I would assume it means you can't develop for Android 5 (API 21) or newer. If your target audience is older than that, you should have no problem.

              "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
              • A aahamdan

                I would like to use Tab bar, so if I use deprecated interface, is there any problem?

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

                aahamdan wrote:

                is there any problem?

                There is only one way to find out.

                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