Replaced Webview with TextView in Accessbility Settings
Removed the webview used for the font preview and replaced
it with a textview. Removes the overhead of using webview
for just a small preview in settings.
Change-Id: I6eb7f3dd67756b220e8f7ff33eab5cc7429d3f36
diff --git a/res/layout/webview_preview.xml b/res/layout/webview_preview.xml
index 2137e9b..b86de2b 100644
--- a/res/layout/webview_preview.xml
+++ b/res/layout/webview_preview.xml
@@ -25,7 +25,6 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
- android:minWidth="@*android:dimen/preference_icon_minWidth"
android:orientation="horizontal">
<ImageView
android:id="@android:id/icon"
@@ -72,13 +71,15 @@
android:gravity="center"
android:orientation="vertical" />
- <android.webkit.WebView
- android:id="@+id/webview"
+ <TextView
+ android:id="@+id/text_size_preview"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_below="@android:id/summary"
android:layout_toRightOf="@android:id/widget_frame"
- android:layout_alignParentRight="true" />
+ android:layout_alignParentRight="true"
+ android:textColor="@color/black"
+ android:background="@color/white"/>
</RelativeLayout>