Add a sample for HorizontalScrollView.

Change-Id: If5f59771182fdb1e76ac10e32a89257f047e6798
diff --git a/samples/ApiDemos/AndroidManifest.xml b/samples/ApiDemos/AndroidManifest.xml
index db7bce7..b1fe9cf 100644
--- a/samples/ApiDemos/AndroidManifest.xml
+++ b/samples/ApiDemos/AndroidManifest.xml
@@ -1291,6 +1291,13 @@
             </intent-filter>
         </activity>
 
+        <activity android:name=".view.HorizontalScrollView1" android:label="Views/Layouts/HorizontalScrollView">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.SAMPLE_CODE" />
+            </intent-filter>
+        </activity>
+
         <activity android:name=".view.Tabs1" android:label="Views/Tabs/1. Content By Id">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN"/>
diff --git a/samples/ApiDemos/res/layout/horizontal_scroll_view1.xml b/samples/ApiDemos/res/layout/horizontal_scroll_view1.xml
new file mode 100644
index 0000000..167be4c
--- /dev/null
+++ b/samples/ApiDemos/res/layout/horizontal_scroll_view1.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+
+<!-- Demonstrates horizontal scrolling with a ScrollView. -->
+<HorizontalScrollView
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="100dip"
+    android:layout_height="120dip">
+    <TextView
+        android:layout_width="300dip"
+        android:layout_height="wrap_content"
+        android:text="@string/scrollbar_3_text" />
+</HorizontalScrollView>
diff --git a/samples/ApiDemos/src/com/example/android/apis/view/HorizontalScrollView1.java b/samples/ApiDemos/src/com/example/android/apis/view/HorizontalScrollView1.java
new file mode 100644
index 0000000..758ab01
--- /dev/null
+++ b/samples/ApiDemos/src/com/example/android/apis/view/HorizontalScrollView1.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.example.android.apis.view;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.View;
+
+import com.example.android.apis.R;
+
+
+public class HorizontalScrollView1 extends Activity {
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+
+        setContentView(R.layout.horizontal_scroll_view1);
+    }
+}