diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2013-11-08 16:43:07 +0530 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2013-11-08 16:43:07 +0530 |
commit | f4800bc3b122828d61a34caecbf782eee170ae59 (patch) | |
tree | 81a73effab5ebcece5c561adc83b129d2c9ad99c /tools/layoutlib/bridge/src | |
parent | 499c7eeb9ad59e5449481eb871db24a176f2ccdb (diff) | |
download | frameworks_base-f4800bc3b122828d61a34caecbf782eee170ae59.zip frameworks_base-f4800bc3b122828d61a34caecbf782eee170ae59.tar.gz frameworks_base-f4800bc3b122828d61a34caecbf782eee170ae59.tar.bz2 |
Fix text size in Fake Action Bar
The density multiplier was being applied twice to the title text in
the fake action bar.
Bug: 11436018
Change-Id: Id74c11037cb43d01f6cd79126623c84edfc37aaf
Diffstat (limited to 'tools/layoutlib/bridge/src')
-rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java index 17b0eb6..bcd08eb4 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java @@ -290,7 +290,7 @@ abstract class CustomBar extends LinearLayout { TypedValue out = new TypedValue(); if (ResourceHelper.parseFloatAttribute("textSize", textSize.getValue(), out, true /*requireUnit*/)) { - textView.setTextSize( + textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, out.getDimension(bridgeContext.getResources().getDisplayMetrics())); } } |