Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-6144

Android: Ability change the Tab titles dynamically

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Sprint 2011-45, Release 1.8.0.1
    • Component/s: Android
    • Labels:
    • Environment:

      Android 2.3.3, Simulator

      Description

      Feature Request

      Ability to change the title on Tabs from TabGroup. It can be done natively.

      Some native code that points out that this is both possible and simple:

      ((TextView)mTabHost.getTabWidget().getChildAt(0).findViewById(android.R.id.title)).setText("New");
      

      Explanation: We grab the object of the TabGroup widget then we point that we need the first child (first tab starting from the left). Next step using this part of code: findViewById(android.R.id.title)) we find the text label (that refers to the Tab). It give us the ability to operate on it like with normal Label. We can change the text using the setText method.

      Associated HelpDesk Ticket

      http://appc.me/c/APP-796146

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                kpomaski Karol Pomaski
              • Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code