From d973776112889dcd90e984f27e7c44da25fde27f Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Tue, 25 Dec 2018 18:02:18 +0800 Subject: [PATCH] Fix distortion in conditional cards When setting device font and display size to largest, conditional cards will get distorted. The fix is to add a different layout for screens that have smaller than 360dp available width. Change-Id: I8b61c9d8a568e79045e4a490aa387c801a57f9a7 Fixes: 119505249 Test: visual --- .../homepage_condition_full_tile.xml | 74 +++++++++++++++++++ res/layout/homepage_condition_full_tile.xml | 51 ++++++------- res/layout/homepage_condition_half_tile.xml | 6 +- res/values/dimens.xml | 1 - 4 files changed, 103 insertions(+), 29 deletions(-) create mode 100644 res/layout-sw360dp/homepage_condition_full_tile.xml diff --git a/res/layout-sw360dp/homepage_condition_full_tile.xml b/res/layout-sw360dp/homepage_condition_full_tile.xml new file mode 100644 index 00000000000..4a8ad0a87af --- /dev/null +++ b/res/layout-sw360dp/homepage_condition_full_tile.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + +