A minor release, which introduces the following changes:
- Allow to specify whether the state of a
TabSwitcher
should be preserved (see #26). - Updated dependency "AndroidUtil" to version 2.1.0.
- Updated AppCompat support library to version 1.1.0.
A minor release, which introduces the following changes:
- Added the
onRecycleView
-method to the classTabSwitcherDecorator
. - Updated dependency "AndroidUtil" to version 2.0.2.
- Updated the annotation support library to version 1.1.0.
A minor release, which introduces the following changes:
- Updated dependency "AndroidUtil" to version 2.0.1.
- Updated dependency "AndroidMaterialViews" to version 3.0.1.
A bugfix release, which introduces the following changes:
- Reverted change from previous release as it caused problems.
A bugfix release, which introduces the following changes:
- When selecting a tab it is now only re-rendered if it was not already selected before.
- Updated the annotation support library to version 1.0.1.
A minor release, which introduces the following changes:
- Improved the appearance of the
TabSwitcherDrawable
.
A feature release, which introduces the following changes:
- Migrated the library to Android X.
- Updated dependency "AndroidUtil" to version 2.0.0.
- Updated dependency "AndroidMaterialViews" to version 3.0.0.
- Updated targetSdkVersion to 28.
- Updated the
TabSwitcherDrawable
to be in accordance with the Material Design 2 guidelines.
A bugfix release, which fixes the following issues:
- Fixed an issue that caused animations to be started although another animation was still executed.
- Fixed a crash when dragging after repeatedly removing tabs (this is an enhanced attempt to fix #20).
A bugfix release, which fixes the following issues:
- Prevented the close buttons of stacked tabs from being clicked (fixes #20).
A minor release, which introduces the following changes:
- Added
notifyTabChanged
-method to classTabSwitcher
. - Updated dependency "AndroidUtil" to version 1.21.0.
A bugfix release, which fixes the following issues:
- Fixed an infinite recursion when calling a
TabSwitcher
'sclearAllSavedStates
-method.
A bugfix release, which fixes the following issues:
- Fixed a crash when a
TabSwitcher
'sonSaveInstanceState
-method is called before the view is laid out. This might happen on some devices when the app is started in landscape mode.
A bugfix release, which fixes the following issues:
- Fixed a crash on device with API level 16 (see #16).
A minor release, which introduces the following changes:
- Increased the size of the
TabSwitcherDrawable
to enhance consistency with other menu items.
A feature release, which introduces the following changes:
- It is now possible to use vector drawables for the navigation icon of a
TabSwitcher
's toolbar as well as for the icon and close button icon of tabs (even on pre-Lollipop devices). - Updated AppCompat v7 support library to version 27.1.1
- Updated AppCompat annotations support library to version 27.1.1
- Updated dependency "AndroidUtil" to version 1.20.3.
- Updated dependency "AndroidMaterialViews" to version 2.1.11.
A bugfix release, which fixes the following issues:
- Fixed a crash of the example app on tablets.
- Updated the dependency "AndroidUtil" to version 1.20.1.
A bugfix release, which fixes the following issues:
- Implemented an alternative fix regarding the issue of previews not being loaded, which does not come with a performance loss. Previews are now again rendered in background threads.
A bugfix release, which fixes the following issues:
- Improved the fix in the last release regarding previews not being loaded. Previews are now entirely rendered on the UI thread.
A bugfix release, which fixes the following issues:
- Fixed previews of tabs not able to be loaded when certain child views (e.g.
AppBarLayout
s) are contained by the tabs. - Fixed a crash when storing the state of a TabSwitcher, if the switcher is still shown after all tabs have been removed.
A bugfix release, which fixes the following issues:
- Fixed an issue, which caused states of a
StatefulTabSwitcherDecorator
to be cleared prematurely.
A minor release, which introduces the following changes:
- Added the class
StatefulTabSwitcherDecorator
. - The saved states of tabs are now cleared when the corresponding tab is removed by default. This can be turned of by using the
clearSavedStatesWhenRemovingTabs
-method. - Fade animations can now be used to show the previews of tabs when using the smartphone layout.
- Updated
targetSdkVersion
to API level 27 (Android 8.1). - Updated dependency "AndroidUtil" to version 1.19.0.
- Updated dependency "AndroidMaterialViews" to version 2.1.10.
- The data structure
ListenerList
is now used for managing event listeners.
A bugfix release, which fixes the following issues:
- Added additional method parameter to the interface
Model.Listener
. It allows to reliably determine, whether the selection changed when adding or removing tabs.
A bugfix release, which fixes the following issues:
TabSwitcherButton
s are now rendered properly in the preview of tabs.- Added the attribute
applyPaddingToTabs
.
A bugfix release, which fixes the following issues:
- Overshooting towards the end as well as the start is now possible when using the phone layout, if only one tab is contained by a
TabSwitcher
- Fixed the navigation icon of a
TabSwitcher
's toolbar not being shown
A major release, which introduces the following features:
- Added predefined dark and light themes
- Added support for drag gestures. So far, the drag gestures
SwipeGesture
andPullDownGesture
are provided - Added the
tabContentBackgroundColor
XML attribute and according setter methods for customizing the background color of a tab's content - The background color of tabs is now adapted when pressed, if a
ColorStateList
with stateandroid:state_pressed
is set - Added the possibility to show a certain placeholder view, when a
TabSwitcher
is empty - Added the functionality to show a circular progress bar instead of an icon for individual tabs.
- Updated dependency "AndroidUtil" to version 1.18.3
- Updated AppCompat v7 support library to version 27.0.2
- Updated AppCompat annotations support library to version 27.0.2
- Added dependency "AndroidMaterialViews" with version 2.1.9
A minor release, which introduces the following changes:
- Added an additional
setupWithMenu
-method for setting up the menu of aTabSwitcher
. If necessary, it uses aOnGlobalLayoutListener
internally.
A bugfix release, which fixes the following issues:
- If a
Tab
, which is added to aTabSwitcher
, happens to have the same hash code as a previously removedTab
, the state of the removed tab is not restored anymore.
A bugfix release, which fixes the following issues:
- Fixed a crash which might occurred when resuming the activity after it was in the background for a long time (see #7).
- Updated dependency "AndroidUtil" to version 1.18.2.
- Updated AppCompat v7 support library to version 27.0.1.
- Updated AppCompat annotations support library to version 27.0.1.
A bugfix release, which fixes the following issues:
- Fixed an issue in the example app, which caused the contents of
EditText
widgets to be shown in the wrong tabs. - Updated
targetSdkVersion
to API level 26. - Updated dependency "AndroidUtil" to version 1.18.0.
- Updated AppCompat v7 support library to version 26.1.0.
- Updated AppCompat annotations support library to version 26.1.0.
A bugfix release, which fixes the following issues:
- Fixed issues, when margins are applied to a
TabSwitcher
A bugfix release, which fixes the following issues:
- Resolved issues when restoring the positions of tabs after orientation changes or when resuming the app
A bugfix release, which fixes the following issues:
- Improved detection of click events
The first unstable release of the library, which provides the following features:
- Provides a layout optimized for smartphones. The layout is adapted depending on whether it is displayed in landscape or portrait mode
- Tabs can dynamically be added and removed in an animated manner using a
SwipeAnimation
,RevealAnimation
orPeekAnimation
- The tab switcher's state is automatically restored on configuration changes
- Views are recycled and previews are rendered as bitmaps in order to increase the performance