Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIMOB-26354] Android: Refactor TabGroup and introduce new style (#10358
) * Refactoring of TabGroup - getting rid of the deprecated ActionBar Tabs UI and replacing it with TabLayout. Introducing a new style. * Rename TiUIAbstractTab to not be Abstract anymore (it is not now). Remove the Lifecycle Interface implementation from TiUIAbstractTabGroup. Fix removing of Tabs before AND after opening the TabGroup. Add titleColor and activeTitleColor properties of Tab parity for Android. Add support for disabling shiftMode for BottomNavigationView (not yet exposed in the JS). Prevent double selection of items in the TabGroup controller. * Expose the shiftMode property. Fix the smoothScrollOnTabClick. * Docs - extend Ti.UI.Window instead of Ti.UI.View. * Fix animation for opening TabGroup. Now works the same way as Window. Clean up listener for tab changes. Fix focus/blur and select/unselect events for TabGroup and Tabs. * Remove some unused code. Optimize the handling of tabs swiping. Fix disabling of tab navigation. Format code. * Fix formatting for controllers. * Add constants for styles in Ti.UI.Android. Guard agains API level. Guard for closing the group before drawing it. Cleanup a bit of code and imports. Lint unit tests and format code. Add docs. * Remove unnecessary field. The value is the same as the default for the ViewPager. Possible problem on API 16? * Mimic the auto selection of the first tab added in TabLayou in BottomNavigationView implementation. * Remove the null set of the tabs field. Extract common work done in fillIntent() in TiWindowProxy. Support theme property for TabGroup. Add support for backgroundColor property. Replace hash codes for IDs with atomic longs. * Allow overriding of the tabs max width property for bottom navigation style. * Revert "Allow overriding of the tabs max width property for bottom navigation style." This reverts commit 8abad8e. * Replace property backgroundColor with tabsBackgroundColor. * Clean up imports. * Fix icon loading for TiUITabLayoutTabGroup. * Fix definition. * Fix indentation. * Keep linting.
- Loading branch information
1 parent
4af828c
commit 8d7a199
Showing
19 changed files
with
1,209 additions
and
850 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.