OSDN Git Service

Update suggestion card width.
authorDoris Ling <dling@google.com>
Tue, 6 Feb 2018 01:55:16 +0000 (17:55 -0800)
committerDoris Ling <dling@google.com>
Tue, 6 Feb 2018 20:18:34 +0000 (12:18 -0800)
commitc627161ca6a3b4f5845425f056620f8dd1465005
treee32e747079c60ad590814c6cb947ae8c6aabe96b
parent3ded640895f646f9a212485754db0900889904b6
Update suggestion card width.

- instead of using hard-coded width for 1 or 2 cards, they should take
up the whole screen width minus the defined padding, so that when the
device is in landscape mode, they look better.

Change-Id: Ic6485c858c7742a154a6d9b05fff180f161be323
Fixes: 72850225
Test: make RunSettingsRoboTests
res/values-sw400dp/dimens.xml
res/values/dimens.xml
src/com/android/settings/dashboard/suggestions/SuggestionAdapter.java
tests/robotests/src/com/android/settings/dashboard/DashboardAdapterTest.java
tests/robotests/src/com/android/settings/dashboard/suggestions/SuggestionAdapterTest.java