summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorDiogo Ferreira <diogo@underdev.org>2015-08-23 19:22:53 +0100
committerRoman Birg <roman@cyngn.com>2015-08-24 21:29:58 +0000
commitfc884dacbfa75bae98dca2fd9553cae9bb34ba6f (patch)
treeb1de09712c715cd9bab0202d723b4aa54798f445 /res
parent1e80b2764759742aa05f61edde8ece6db35f2497 (diff)
downloadandroid_packages_apps_AudioFX-fc884dacbfa75bae98dca2fd9553cae9bb34ba6f.tar.gz
android_packages_apps_AudioFX-fc884dacbfa75bae98dca2fd9553cae9bb34ba6f.tar.bz2
android_packages_apps_AudioFX-fc884dacbfa75bae98dca2fd9553cae9bb34ba6f.zip
audiofx: Fix preset display being cut with Large Text
When the Large Text accessibility option is enabled, the preset name would get a few of its pixels cut. This patchset solves that by measuring the viewpager to have the size of its maximum child. Change-Id: I35a0f16f8a07b79181a8eaec59d93d58713148e2
Diffstat (limited to 'res')
-rw-r--r--res/layout/equalizer.xml2
-rw-r--r--res/layout/preset_adapter_row.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/res/layout/equalizer.xml b/res/layout/equalizer.xml
index 883385d..9b5d358 100644
--- a/res/layout/equalizer.xml
+++ b/res/layout/equalizer.xml
@@ -22,7 +22,7 @@
<com.cyngn.audiofx.preset.InfiniteViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
- android:layout_height="40dp"
+ android:layout_height="wrap_content"
/>
<com.viewpagerindicator.CirclePageIndicator
diff --git a/res/layout/preset_adapter_row.xml b/res/layout/preset_adapter_row.xml
index 7a795ec..3b4160a 100644
--- a/res/layout/preset_adapter_row.xml
+++ b/res/layout/preset_adapter_row.xml
@@ -14,4 +14,4 @@
android:ellipsize="end"
android:maxLines="1"
android:layout_width="match_parent"
- android:layout_height="match_parent"/>
+ android:layout_height="wrap_content"/>