The animations are really broken here. A hacky fix
has been added in the past for versions 22-24 and now
for version 21 just by bluntly set the elevation and
translationZ by respecting the logic in the animations
for 22-24.
Bug: 33126409
Test: identified this bug from an existing test.
Change-Id: I0cba73cda030ef7a66ffad452bc0f14b7687fc52
GitOrigin-RevId=829c95c8a3fd508b798bedff028d7d6b55e16ce5
PiperOrigin-RevId: 141514172
This is where it was originally, and this is where it remains
for backwards-compatibility reasons. Also fix broken tests.
Test: run tests in SnackbarTest
Bug: 33192595
Change-Id: I644c03b6a284d7f7177916347c07fc30558e08b8
GitOrigin-RevId=ca9c74379e9fb2b38965253836a2ab0e36990c45
PiperOrigin-RevId: 141514063
We should only be dispatching these events to
Behaviors with views which are visibile.
BUG: 33134309
Test: included
Change-Id: I3c9b442dfa00bc6e0fbe1e0ea5969536f988e663
GitOrigin-RevId=4a5dd898048a920452692c99896ef8782d71e09b
PiperOrigin-RevId: 141511687
Works around Doclava API check limitations in Snackbar and v17 classes.
Removes @removed code. Restores GuidedActionsStylelist API that was
removed without prior deprecation.
Bug: 30434567
Change-Id: I58c8a869f4e620d2aca8765a73105c95c185c791
GitOrigin-RevId=77d397d533d04dfec663939692f2e048a072ee5b
PiperOrigin-RevId: 141510703
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
Any resulting app built with the support lib from
Gradle will have a meta-data tag added to their
AndroidManifest.xml, for example:
<meta-data android:name="android.support.VERSION"
android:value="25.1.0" />
The value is automatically populated via the magic
of the Gradle build system.
BUG: 32171613
Test: manual (generate APK and inspect in AS APK Analyzer)
Change-Id: I51cf646b32a15d93105560115f1fee2a71d35e35
GitOrigin-RevId=cdcdfd0a75b595a3f757ee4cad85852edf130d1d
PiperOrigin-RevId: 141508186
Instead of artifical timeouts and race condition in waiting
for snackbar's dismissal in a loop, use Espresso's IdlingResource
to reliably wait until the snackbar has been shown or
dismissed.
Also align the API surface of snackbar's callbacks with DrawerLayout's
listeners, allowing registering more than one callback, and removing
registered callbacks.
Bug: 32022732
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.CustomSnackbarTest
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTest
Change-Id: If8f8415b6453d75cb24a022b2d7d676f7649542c
GitOrigin-RevId=8c153ac8980737c4292ae1c019c69471607b3859
PiperOrigin-RevId: 141502000
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
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