diff --git a/res/layout/font_size_preview.xml b/res/layout/font_size_preview.xml
index f4a861cf93d..d84bb39d611 100644
--- a/res/layout/font_size_preview.xml
+++ b/res/layout/font_size_preview.xml
@@ -14,35 +14,47 @@
limitations under the License.
-->
-
+ android:fillViewport="true" >
-
+ android:layout_height="wrap_content">
-
+
-
+
-
-
+
+
+
+
+
+
+
+
diff --git a/res/layout/preview_frame_container.xml b/res/layout/preview_frame_container.xml
deleted file mode 100644
index 5ba3b7fc467..00000000000
--- a/res/layout/preview_frame_container.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
diff --git a/res/layout/screen_zoom_preview_1.xml b/res/layout/screen_zoom_preview_1.xml
index 1acd677808d..42800916d89 100644
--- a/res/layout/screen_zoom_preview_1.xml
+++ b/res/layout/screen_zoom_preview_1.xml
@@ -13,56 +13,66 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-
+ android:fillViewport="true" >
-
+ android:layout_height="wrap_content">
-
+
-
+
-
+
-
+
+
+
+
+
+
diff --git a/res/layout/screen_zoom_preview_settings.xml b/res/layout/screen_zoom_preview_settings.xml
index 2e680090620..f93adc24a72 100644
--- a/res/layout/screen_zoom_preview_settings.xml
+++ b/res/layout/screen_zoom_preview_settings.xml
@@ -17,204 +17,210 @@
-
+ android:layout_height="wrap_content">
-
-
-
+ android:orientation="vertical">
+
+ android:paddingTop="16dp"
+ android:paddingStart="8dp"
+ android:orientation="horizontal">
-
+
+
+ android:layout_weight="1"
+ android:orientation="vertical"
+ android:paddingStart="16dp">
+
+
-
+
+
+
+
+
+
+
+
+
+ android:layout_weight="1"
+ android:orientation="vertical"
+ android:paddingStart="16dp">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/src/com/android/settings/PreviewPagerAdapter.java b/src/com/android/settings/PreviewPagerAdapter.java
index 8032f92002a..485ac8f7ada 100644
--- a/src/com/android/settings/PreviewPagerAdapter.java
+++ b/src/com/android/settings/PreviewPagerAdapter.java
@@ -25,6 +25,8 @@ import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.Interpolator;
import android.widget.FrameLayout;
+import android.widget.LinearLayout;
+import android.widget.ScrollView;
/**
* A PagerAdapter used by PreviewSeekBarPreferenceFragment that for showing multiple preview screen
@@ -32,7 +34,7 @@ import android.widget.FrameLayout;
*/
public class PreviewPagerAdapter extends PagerAdapter {
- private TouchBlockingFrameLayout[] mPreviewFrames;
+ private FrameLayout[] mPreviewFrames;
/** Duration to use when cross-fading between previews. */
private static final long CROSS_FADE_DURATION_MS = 400;
@@ -45,11 +47,13 @@ public class PreviewPagerAdapter extends PagerAdapter {
public PreviewPagerAdapter(Context context, int[] previewSampleResIds,
Configuration[] configurations) {
- mPreviewFrames = new TouchBlockingFrameLayout[previewSampleResIds.length];
+ mPreviewFrames = new FrameLayout[previewSampleResIds.length];
for (int i = 0; i < previewSampleResIds.length; ++i) {
- mPreviewFrames[i] = (TouchBlockingFrameLayout) LayoutInflater.from(context)
- .inflate(R.layout.preview_frame_container, null);
+ mPreviewFrames[i] = new FrameLayout(context);
+ mPreviewFrames[i].setLayoutParams(new LinearLayout.LayoutParams(
+ LinearLayout.LayoutParams.MATCH_PARENT,
+ LinearLayout.LayoutParams.MATCH_PARENT));
mPreviewFrames[i].setContentDescription(
context.getString(R.string.preview_page_indicator_content_description, i + 1,
previewSampleResIds.length));
@@ -65,7 +69,6 @@ public class PreviewPagerAdapter extends PagerAdapter {
mPreviewFrames[i], false);
sampleView.setAlpha(0);
sampleView.setVisibility(View.INVISIBLE);
-
mPreviewFrames[i].addView(sampleView);
}
}