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

Android: Add "badge" support to TabGroup

    Details

    • Story Points:
      7

      Description

      Summary:
      We currently only support displaying badges in TabGroup tabs on iOS. We should add support to Android for parity.
      https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Tab-property-badge
      https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Tab-property-badgeColor

      To-Do:
      For the top tab style, we can use the "material" TabLayout.Tab class' getOrCreateBadge() and removeBadge() APIs.
      https://developer.android.com/reference/com/google/android/material/tabs/TabLayout.Tab

      For the bottom tab style, we can use the "material" BottomNavigationView class' getOrCreateBadge() and removeBadge() APIs.
      https://developer.android.com/reference/com/google/android/material/bottomnavigation/BottomNavigationView

      Both of the above tab classes use the "material" BadgeDrawable class which provides APIs such as setNumber(), setBackgroundColor(), etc.
      https://developer.android.com/reference/com/google/android/material/badge/BadgeDrawable

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Joshua Quick
                Tester:
                Samir Mohammed
              • Watchers:
                6 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 Integration