Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8          http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <android.widget.cts.MyHorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/horizontal_scroll_view"
     19     android:layout_width="100px"
     20     android:layout_height="100px">
     21 
     22     <LinearLayout
     23         android:orientation="horizontal"
     24         android:layout_width="250px"
     25         android:layout_height="wrap_content">
     26 
     27         <Button
     28             android:id="@+id/first_horizontal_child"
     29             android:layout_width="250px"
     30             android:layout_height="100px"
     31             android:text="@string/vertical_text_1"/>
     32 
     33         <Button
     34             android:layout_width="250px"
     35             android:layout_height="100px"
     36             android:text="@string/vertical_text_2"/>
     37 
     38         <Button
     39             android:layout_width="250px"
     40             android:layout_height="100px"
     41             android:text="@string/vertical_text_3"/>
     42 
     43         <Button
     44             android:layout_width="250px"
     45             android:layout_height="100px"
     46             android:text="@string/vertical_text_1"/>
     47 
     48         <Button
     49             android:layout_width="250px"
     50             android:layout_height="100px"
     51             android:text="@string/vertical_text_2"/>
     52 
     53         <Button
     54             android:layout_width="250px"
     55             android:layout_height="100px"
     56             android:text="@string/vertical_text_3"/>
     57 
     58         <Button
     59             android:layout_width="250px"
     60             android:layout_height="100px"
     61             android:text="@string/vertical_text_1"/>
     62 
     63         <Button
     64             android:layout_width="250px"
     65             android:layout_height="100px"
     66             android:text="@string/vertical_text_2"/>
     67 
     68         <Button
     69             android:layout_width="250px"
     70             android:layout_height="100px"
     71             android:text="@string/vertical_text_3"/>
     72 
     73         <Button
     74             android:layout_width="250px"
     75             android:layout_height="100px"
     76             android:text="@string/vertical_text_1"/>
     77 
     78         <Button
     79             android:layout_width="250px"
     80             android:layout_height="100px"
     81             android:text="@string/vertical_text_2"/>
     82 
     83         <Button
     84             android:layout_width="250px"
     85             android:layout_height="100px"
     86             android:text="@string/vertical_text_3"/>
     87 
     88         <Button
     89             android:layout_width="250px"
     90             android:layout_height="100px"
     91             android:text="@string/vertical_text_1"/>
     92 
     93         <Button
     94             android:layout_width="250px"
     95             android:layout_height="100px"
     96             android:text="@string/vertical_text_2"/>
     97 
     98         <Button
     99             android:id="@+id/last_horizontal_child"
    100             android:layout_width="250px"
    101             android:layout_height="100px"
    102             android:text="@string/vertical_text_3"/>
    103     </LinearLayout>
    104 
    105 </android.widget.cts.MyHorizontalScrollView>
    106