summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-05-08 15:21:16 -0700
committerMaurice Lam <yukl@google.com>2015-05-08 15:21:16 -0700
commite83f0555f1a0dc2671162a8a6e3876e591981de6 (patch)
treebd968b83f06235373d2794bf7e1cc53dce267d2b
parent3c154790e7c6668c60237bcde0fc6f5fa22884b0 (diff)
downloadsetupwizard-e83f0555f1a0dc2671162a8a6e3876e591981de6.tar.gz
[SetupWizardLib] Make screens adjustResize by default
Setting adjustPan on screens causes some weird interactions with the IME. Set adjustResize on all the default SuwThemeMaterial. Moreover, SystemBarHelper.setImeInsetView requires adjustResize to function properly as well. Bug: 20860416 Change-Id: Ia8463a9cc02a8f3d897a3a8aa48380b7c9ad4b5a
-rw-r--r--library/eclair-mr1/res/values/styles.xml4
-rw-r--r--library/platform/res/values-v21/styles.xml4
2 files changed, 4 insertions, 4 deletions
diff --git a/library/eclair-mr1/res/values/styles.xml b/library/eclair-mr1/res/values/styles.xml
index e7db9ac..9b6b659 100644
--- a/library/eclair-mr1/res/values/styles.xml
+++ b/library/eclair-mr1/res/values/styles.xml
@@ -26,7 +26,7 @@
<item name="android:textColorLink">@color/suw_link_color_dark</item>
<item name="android:textColorSecondary">@color/suw_color_secondary_dark</item>
<item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
- <item name="android:windowSoftInputMode">adjustPan</item>
+ <item name="android:windowSoftInputMode">adjustResize</item>
<item name="colorAccent">@color/suw_color_accent_dark</item>
<item name="suwCardBackground">@drawable/suw_card_bg_dark</item>
@@ -40,7 +40,7 @@
<item name="android:textColorLink">@color/suw_link_color_light</item>
<item name="android:textColorSecondary">@color/suw_color_secondary_light</item>
<item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
- <item name="android:windowSoftInputMode">adjustPan</item>
+ <item name="android:windowSoftInputMode">adjustResize</item>
<item name="colorAccent">@color/suw_color_accent_light</item>
<item name="suwCardBackground">@drawable/suw_card_bg_light</item>
diff --git a/library/platform/res/values-v21/styles.xml b/library/platform/res/values-v21/styles.xml
index 1afe85c..dc9b9b6 100644
--- a/library/platform/res/values-v21/styles.xml
+++ b/library/platform/res/values-v21/styles.xml
@@ -34,7 +34,7 @@
<item name="android:textColorLink">@color/suw_link_color_dark</item>
<item name="android:textColorSecondary">@color/suw_color_secondary_dark</item>
<item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
- <item name="android:windowSoftInputMode">adjustPan</item>
+ <item name="android:windowSoftInputMode">adjustResize</item>
<item name="suwCardBackground">@drawable/suw_card_bg</item>
<item name="suwNavBarTheme">@style/SuwNavBarThemeDark</item>
@@ -50,7 +50,7 @@
<item name="android:textColorLink">@color/suw_link_color_light</item>
<item name="android:textColorSecondary">@color/suw_color_secondary_light</item>
<item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
- <item name="android:windowSoftInputMode">adjustPan</item>
+ <item name="android:windowSoftInputMode">adjustResize</item>
<item name="suwCardBackground">@drawable/suw_card_bg</item>
<item name="suwNavBarTheme">@style/SuwNavBarThemeLight</item>