23 Commits

Author SHA1 Message Date
rightnao
d1c5a52cf4 [TabLayout] Update motion attributes for tab layout
PiperOrigin-RevId: 468736364
2022-08-22 15:23:26 -04:00
hunterstich
a295de9728 [TabLayout] Added fade inidcator animation mode.
PiperOrigin-RevId: 417842993
2021-12-22 14:48:54 -05:00
conradchen
04a6b6c39e [M3][Tab] Do not enforce text appearance with M3 styles
PiperOrigin-RevId: 409445341
2021-11-16 12:35:44 -05:00
conradchen
804cd600b0 [M3][Tab] Make secondary style change label color when selected
To align with the behavior of the main style.

PiperOrigin-RevId: 392037281
2021-08-23 09:44:30 -07:00
conradchen
60782a5d9b [M3][Tab] Create M3 styles
PiperOrigin-RevId: 391849752
2021-08-23 09:29:03 -07:00
hunterstich
0afcb48f14 [TabLayout] Automated g4 rollback of changelist 337128442.
*** Reason for rollback ***

[TabLayout] Roll forward with dot indicator fix

*** Original change description ***

Automated g4 rollback of changelist 337092676

PiperOrigin-RevId: 337484043
2020-10-16 05:54:50 -07:00
hunterstich
91589f4c24 Automated g4 rollback of changelist 337092676
PiperOrigin-RevId: 337128442
2020-10-15 13:28:59 -07:00
hunterstich
f0a80c4e41 [TabLayout] Automated g4 rollback of changelist 336764852.
*** Reason for rollback ***

Roll forward with fix

*** Original change description ***

Automated g4 rollback of changelist 336704515

PiperOrigin-RevId: 337092676
2020-10-15 13:25:34 -07:00
hunterstich
f743057941 Automated g4 rollback of changelist 336704515
PiperOrigin-RevId: 336764852
2020-10-15 13:16:16 -07:00
hunterstich
f8f3d9086e [TabLayout] Added initial indicator interpolation extensibility.
Added a linear and elastic interpolator to handle specing the indicator at any point between two tabs.

PiperOrigin-RevId: 336704515
2020-10-15 13:14:22 -07:00
Material Design Team
1febcf94b1 Automated g4 rollback of changelist 292560239
PiperOrigin-RevId: 292606404
2020-01-31 16:53:08 -05:00
Material Design Team
811ea17e60 Add roleDescriptions to tabs for accessibility
PiperOrigin-RevId: 292560239
2020-01-31 13:38:39 -05:00
connieshi
a15d3ea219 Update TabLayout so it takes into account TabGravity in MODE_SCROLLABLE.
Add TabGravity.GRAVITY_START to maintain existing (default) MODE_SCROLLABLE behavior.
MODE_SCROLLABLE currently supports GRAVITY_CENTER and GRAVITY_START
MODE_FIXED does not support GRAVITY_START.

PiperOrigin-RevId: 289910847
2020-01-15 14:25:50 -08:00
dniz
37534561f2 Add component styles that swap between primary and surface styles depending on light vs dark theme
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application

PiperOrigin-RevId: 256208965
2019-07-03 14:11:49 -04:00
Material Design Team
2f3e1c4cf4 Add new MODE_AUTO setting for TabLayout. MODE_AUTO behaves like MODE_FIXED with GRAVITY_CENTER while the tabs fit in the content view. Once the tabs expand beyond the TabLayout width, the TabLayout behaves as MODE_SCROLLABLE.
PiperOrigin-RevId: 243852684
2019-04-19 21:21:27 -04:00
melaniegoetz
c7ca91c338 Remove TextAppearance.MaterialComponents.Tab
PiperOrigin-RevId: 216426993
2018-10-11 18:17:08 -04:00
melaniegoetz
172dd213de Automated g4 rollback of changelist 215959602
PiperOrigin-RevId: 215986589
2018-10-11 18:12:20 -04:00
melaniegoetz
db507b1048 Remove TextAppearance.MaterialComponents.Tab
PiperOrigin-RevId: 215959602
2018-10-11 18:11:17 -04:00
gauthams
74aaace931 Update legacy TabLayout style to set tabTextColor to @null, so that it uses textColor from tabTextAppearance.
PiperOrigin-RevId: 210592264
2018-08-28 16:45:27 -04:00
gauthams
14e9a020a1 Update TabLayout to use new color attributes
PiperOrigin-RevId: 210553777
2018-08-28 16:42:54 -04:00
gauthams
8cbde4c219 Update tabs to use type scale attributes, and enforce textAppearance check
PiperOrigin-RevId: 202501993
2018-07-02 09:46:58 -04:00
afohrman
0518a3d651 Add missing public attributes.
Looks like some styles and component style attributes slipped by.

PiperOrigin-RevId: 198762794
2018-05-31 16:35:29 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00