OSDN Git Service

Add battery illustration
authorLei Yu <jackqdyulei@google.com>
Fri, 30 Mar 2018 16:50:02 +0000 (09:50 -0700)
committerLei Yu <jackqdyulei@google.com>
Thu, 5 Apr 2018 17:26:41 +0000 (10:26 -0700)
commit0a358ba47c8bc04833ca9a567c0f6d0970652402
treebbaebe8fdb6c910894935b54726f31ad047fe74b
parentcf60ff7e08e4f10e653210bcd4105156bcca86ff
Add battery illustration

Also update the VideoPreference to handle the full screen
illustration by adding attr isFullWidth and aspectRadio.

Change-Id: If2ccba4ce792801c6fd79b7c60af4e3826c091cc
Fixes: 74409022
Test: Screenshot | RunSettingsRoboTests
res/drawable-nodpi/auto_awesome_battery [new file with mode: 0644]
res/layout/smart_battery_header.xml [deleted file]
res/layout/video_preference.xml
res/raw/auto_awesome_battery.mp4 [new file with mode: 0644]
res/xml/smart_battery_detail.xml
src/com/android/settings/widget/AspectRatioFrameLayout.java
src/com/android/settings/widget/VideoPreference.java
tests/robotests/src/com/android/settings/widget/AspectRatioFrameLayoutTest.java
tests/robotests/src/com/android/settings/widget/VideoPreferenceTest.java [new file with mode: 0644]