Fix layout transition from Display->Ambient Display to Gestures

1. Add handling in Gestures settings to scroll to the corresponding
preference when launching from Display->Ambient Display
2. Remove the bitmap creation for the video preview image
3. Use a custom aspect ration framee layout to hold the animation
instead to avoid resizing of the animation view.

Bug: 29795707
Change-Id: I67209ba2508a93da4fc46ff20986309dbe5a83d5
This commit is contained in:
Doris Ling
2016-06-30 18:58:40 -07:00
parent f230f4f9ad
commit 9a3cf7725b
6 changed files with 110 additions and 20 deletions

View File

@@ -141,4 +141,9 @@
<attr name="animation" format="reference" />
</declare-styleable>
<!-- For AspectRatioFrameLayout -->
<declare-styleable name="AspectRatioFrameLayout">
<attr name="aspectRatio" format="float" />
</declare-styleable>
</resources>