21 Commits

Author SHA1 Message Date
afohrman
73cb135c15 Update vertical motion for TextInputLayout's error text.
Motion additions/updates in this change:
- Added animation for error text's translation down
- Updated durations and interpolators for the opacity in and out animations

These changes roll forward changes that were previously rolled back because they broke screenshot tests.

PiperOrigin-RevId: 158881906
2017-06-14 16:38:11 -07:00
afohrman
94947cde8a Broke some screenshot tests.
PiperOrigin-RevId: 157239931
2017-06-14 16:33:59 -07:00
afohrman
63acb542ed Update motion for TextInputLayout's error state.
Motion additions/updates in this change:
- Added animation for error text's translation down
- Updated durations and interpolators for the opacity in and out animations

PiperOrigin-RevId: 157220100
2017-06-14 16:32:30 -07:00
gauthams
08c783554a Update documentation for methods to set and get shifting mode on BottomNavigationView
PiperOrigin-RevId: 156251192
2017-05-24 16:31:55 -07:00
gauthams
8493677be9 Add option to disable shifting mode even on BottomNavigationViews with 3+ children
Fixes #22.

PiperOrigin-RevId: 156126715
2017-05-16 16:02:31 -07:00
gauthams
7957a2d8aa Update shifting BottomNavigationView behavior to size active view width based on label size, rather than defaulting to maxWidth.
PiperOrigin-RevId: 155252923
2017-05-05 16:44:28 -07:00
gauthams
0d29fa6a89 Add default scrolling behavior to BottomNavigationView
PiperOrigin-RevId: 155029168
2017-05-05 16:38:46 -07:00
Material Design Team
678cb61a4c textColorError can also be a reference
Aligns with Support Library changes in 26.0.0.

PiperOrigin-RevId: 153749146
2017-04-21 14:00:29 -07:00
Aurimas Liutikas
eda6419b17 Cleanup FloatingActionButton code to remove unneeded code.
Remove code that is no longer needed since minSdk for support library is API
14.
This code collapses FloatingActionButtonImpl, FloatingActionButtonGingerbread
and FloatingActionButtonIcs into one class.

Bug: 32794064
Test: ./gradlew clean assemble still works
Change-Id: Id20c0d1807e08ab11ece63883debe2682cfa815f
PiperOrigin-RevId: 151874300
2017-04-12 17:25:18 -07:00
Yuichi Araki
dd60249ea2 Fix Talkback on BottomSheetDialog
The bottom sheet is no longer marked as clickable.

Bug: 32548431
Test: BottomSheetDialogTest#testTouchInside, #testClickContent
Change-Id: I0870ae90f6f51fd705486f715d7e8e6e970998da

PiperOrigin-RevId: 148385873
2017-03-14 17:23:13 -07:00
Tenghui Zhu
b31e69875a Mark path as non translatable
Test: Newly added test and sample app for the original repro step.

AOSP bug: https://code.google.com/p/android/issues/detail?id=232407
Bug: 34767250
Change-Id: Ia216bf1177a55a139f8988d995836c1d42c496ee

PiperOrigin-RevId: 147116504
2017-03-14 17:20:10 -07:00
travisc
9970698e3b Fix BottomNavigationView label placement.
Use the baseline of the labels for positioning them. Previously
it was 8dp from the bottom of the view, now it is 10dp from the baseline
of the text. This makes it follow the spec for this widget.

Bug: 33794750
Test: no test, visual change
Change-Id: Iaf6534937ee5d66651c1e04d805fd7bcab3ea44c

PiperOrigin-RevId: 144145280
2017-01-18 17:57:08 -08:00
Chris Banes
615d32fc46 Merge "Small TextInputLayout label fixes" into nyc-support-25.1-dev
GitOrigin-RevId=b1d1c0478c81b1319d1c3fb2970e09380adf2091

PiperOrigin-RevId: 141512013
2016-12-12 16:04:19 -08:00
TreeHugger Robot
8a34d1903b Merge "Fix accessibility for password toggle button" into nyc-support-25.1-dev
GitOrigin-RevId=ce68d2b2f605e85c22fe6453d10610d2d40d09f1

PiperOrigin-RevId: 141510504
2016-12-12 16:03:46 -08:00
Alan Viverette
29d3d012d5 Adds working lint target to support lib build, more workarounds
Explicitly disable on v17 leanback and v7 preference, which need
some work. Suppress issues due to Lint failing to distinguish locally-
defined methods from framework methods.

Depends on fullsdk project, which is NOT in the default checkout.

Bug: 29630077
Test: ./gradlew lint && ./gradlew assemble
Change-Id: If8da576a8f9e2a431bc60a473f0c36054818d7c1

GitOrigin-RevId=af6b251c15dab2237fdf100b5ebb9c0851c2d490

PiperOrigin-RevId: 141509307
2016-12-12 16:03:24 -08:00
Chris Banes
dcb687ccad Merge "Update TextInputLayout icon for spec update" into nyc-support-25.1-dev
GitOrigin-RevId=e7f67226a7ce97d1ae0d22b4a4b4e33010db4881

PiperOrigin-RevId: 141507754
2016-12-12 16:03:07 -08:00
Aurimas Liutikas
17b966635a Add shadow to BottomNavigationView.
am: 7ff7ddcb89

Change-Id: I85aea8320dea1fe8010a6fd5392834a7f53b22a0

GitOrigin-RevId=d484061a5bf1efcc88e349c229e1d1acbb9befae

PiperOrigin-RevId: 141505394
2016-12-12 16:02:43 -08:00
Aurimas Liutikas
4ed543653e Merge "Force BottomNavigationView item labels to be singleLine."
GitOrigin-RevId=02df9a239ca934dd45815d6a291707b1a011766e

PiperOrigin-RevId: 141500461
2016-12-12 16:01:50 -08:00
Kirill Grouchnikov
b241ff5785 Merge "Support custom views on snackbars"
GitOrigin-RevId=baa44c7e34d35c5aec759edd57a0833e31417379

PiperOrigin-RevId: 141498549
2016-12-12 16:01:41 -08:00
travisc
0cbebc7887 Begin syncing to 25.1.0 design library code.
This CL will look a bit strange, as it reverse some changes that
were already present. Unfortunately the Android auto-merger greatly
confuses our syncing tool, as it effectively creates new commits
that have the same content as old commits, and does so in a
non-linear fashion (e.g. the commit tree in 25.1.0 is not merely
built on top of 25.0.1).

This CL will get us into a state where we're ready to apply the rest
of the 25.1.0 changes in succession, and once that is completed,
we'll be at the correct (matching) state.

GitOrigin-RevId=11a895a323af06c4731e4c64a7ec2c09ac0aaf2f

PiperOrigin-RevId: 141497561
2016-12-12 16:01:37 -08:00
travisc
5effa7d71f Add gradle wrapper and associated files, restructure top-level directories.
This new structure will allow for a top-level gradle file and a multi-project
build (which is a more typical structure for things). In the future, it will
allow us to place other projects in here as well (such as sample applications).

PiperOrigin-RevId: 141247594
2016-12-12 16:01:26 -08:00