Add open source license html file to Setting->About.

Start a new activity to open html file when clicking on "Licenses"
from Setting->About.

BUG 25358009

Change-Id: I6a9d92bdcc2e3ac34e892de3c4ffb2ebb7a3deb3
diff --git a/res-common/layout/licenses.xml b/res-common/layout/licenses.xml
new file mode 100644
index 0000000..66d4f46
--- /dev/null
+++ b/res-common/layout/licenses.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2015 Google Inc. All Rights Reserved. -->
+
+<WebView
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        android:id="@+id/webview"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
+</WebView>
\ No newline at end of file
diff --git a/res-common/values/strings.xml b/res-common/values/strings.xml
index d6da55e..b5cf625 100644
--- a/res-common/values/strings.xml
+++ b/res-common/values/strings.xml
@@ -816,4 +816,7 @@
 
     <!-- Terms of service title in about preference. [CHAR LIMIT=60]-->
     <string name="about_terms_of_service">Terms of service</string>
+
+    <!-- Title for the activity that displays licenses for open source libraries. [CHAR LIMIT=100]-->
+    <string name="activity_title_licenses">Open source licenses</string>
 </resources>
diff --git a/res-common/xml/preference_display_options.xml b/res-common/xml/preference_display_options.xml
index 05e47d5..f4befc0 100644
--- a/res-common/xml/preference_display_options.xml
+++ b/res-common/xml/preference_display_options.xml
@@ -42,26 +42,26 @@
                 android:key="@string/pref_build_version_key"
                 android:title="@string/about_build_version"/>
 
-        <PreferenceScreen
+        <Preference
                 android:icon="@null"
                 android:key="@string/pref_open_source_licenses_key"
                 android:title="@string/about_open_source_licenses"
                 android:summary="@string/about_open_source_licenses_summary"/>
 
-        <PreferenceScreen
+        <Preference
                 android:icon="@null"
                 android:key="@string/pref_privacy_policy_key"
                 android:title="@string/about_privacy_policy">
             <intent android:action="android.intent.action.VIEW"
                     android:data="http://www.google.com/policies/privacy" />
-        </PreferenceScreen>
+        </Preference>
 
-        <PreferenceScreen
+        <Preference
                 android:icon="@null"
                 android:key="@string/pref_terms_of_service_key"
                 android:title="@string/about_terms_of_service">
             <intent android:action="android.intent.action.VIEW"
                     android:data="http://www.google.com/policies/terms" />
-        </PreferenceScreen>
+        </Preference>
     </PreferenceScreen>
 </PreferenceScreen>