From 8a6af61da88d258314ac743f6e1307439282cb43 Mon Sep 17 00:00:00 2001 From: Dave Kover Date: Wed, 13 Apr 2016 15:37:33 -0700 Subject: Update controls preview to properly render themed assets. The style preview card does not use assets which are overridden by most themes. This results in an inaccurate preview of the included controls, ie checkbox and radio buttons. Additionally, the font size is cut off on the button in the preview. Increase button height and decrease font size to compensate. Ticket: CYNGNOS-874 Change-Id: I286f801afa7b6366ecf50395075240f33bc3d0ac (cherry picked from commit b5f89235f519d7c20e05e66156ffe4ceb4fa9491) --- res/layout/controls_preview.xml | 27 +++++++++++++--------- .../themes/provider/util/LayoutRenderUtils.java | 12 ++++++++++ 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/res/layout/controls_preview.xml b/res/layout/controls_preview.xml index e85b53c..7b35b17 100644 --- a/res/layout/controls_preview.xml +++ b/res/layout/controls_preview.xml @@ -44,15 +44,16 @@