Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 
      3 <!--
      4 /*
      5 * Copyright (C) 2011, The Android Open Source Project
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19 -->
     20 
     21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     22               android:id="@+id/simplePad"
     23               android:layout_width="match_parent"
     24               android:layout_height="match_parent"
     25               android:orientation="vertical"
     26               android:layout_gravity="center"
     27               >
     28     <LinearLayout
     29         android:layout_weight="1"
     30         android:layout_width="match_parent"
     31         android:layout_height="0dp"
     32         >
     33         <com.android.calculator2.ColorButton
     34             android:id="@+id/digit7"
     35             android:text="@string/digit7"
     36             style="@style/digit_button_style"
     37             />
     38         <com.android.calculator2.ColorButton
     39             android:id="@+id/digit8"
     40             android:text="@string/digit8"
     41             style="@style/digit_button_style"
     42             />
     43         <com.android.calculator2.ColorButton
     44             android:id="@+id/digit9"
     45             android:text="@string/digit9"
     46             style="@style/digit_button_style"
     47             />
     48         <com.android.calculator2.ColorButton
     49             android:id="@+id/leftParen"
     50             android:text="@string/leftParen"
     51             style="@style/button_style"
     52             />
     53         <com.android.calculator2.ColorButton
     54             android:id="@+id/rightParen"
     55             android:text="@string/rightParen"
     56             style="@style/button_style"
     57             />
     58         <com.android.calculator2.ColorButton
     59             android:id="@+id/mul"
     60             android:text="@string/mul"
     61             style="@style/button_style"
     62             />
     63     </LinearLayout>
     64 
     65     <LinearLayout
     66         android:layout_weight="1"
     67         android:layout_width="match_parent"
     68         android:layout_height="0dp"
     69         >
     70         <com.android.calculator2.ColorButton
     71             android:id="@+id/digit4"
     72             android:text="@string/digit4"
     73             style="@style/digit_button_style"
     74             />
     75         <com.android.calculator2.ColorButton
     76             android:id="@+id/digit5"
     77             android:text="@string/digit5"
     78             style="@style/digit_button_style"
     79             />
     80         <com.android.calculator2.ColorButton
     81             android:id="@+id/digit6"
     82             android:text="@string/digit6"
     83             style="@style/digit_button_style"
     84             />
     85         <com.android.calculator2.ColorButton
     86             android:id="@+id/dot"
     87             android:text="@string/dot"
     88             style="@style/digit_button_style"
     89             />
     90         <com.android.calculator2.ColorButton
     91             android:id="@+id/div"
     92             android:text="@string/div"
     93             style="@style/button_style"
     94             />
     95         <com.android.calculator2.ColorButton
     96             android:id="@+id/minus"
     97             android:text="@string/minus"
     98             style="@style/button_style"
     99             />
    100     </LinearLayout>
    101 
    102     <LinearLayout
    103         android:layout_weight="1"
    104         android:layout_width="match_parent"
    105         android:layout_height="0dp"
    106         >
    107         <com.android.calculator2.ColorButton
    108             android:id="@+id/digit1"
    109             android:text="@string/digit1"
    110             style="@style/digit_button_style"
    111             />
    112         <com.android.calculator2.ColorButton
    113             android:id="@+id/digit2"
    114             android:text="@string/digit2"
    115             style="@style/digit_button_style"
    116             />
    117         <com.android.calculator2.ColorButton
    118             android:id="@+id/digit3"
    119             android:text="@string/digit3"
    120             style="@style/digit_button_style"
    121             />
    122         <com.android.calculator2.ColorButton
    123             android:id="@+id/digit0"
    124             android:text="@string/digit0"
    125             style="@style/digit_button_style"
    126             />
    127         <com.android.calculator2.ColorButton
    128             android:id="@+id/equal"
    129             android:text="@string/equal"
    130             style="@style/button_style"
    131             />
    132         <com.android.calculator2.ColorButton
    133             android:id="@+id/plus"
    134             android:text="@string/plus"
    135             style="@style/button_style"
    136             />
    137     </LinearLayout>
    138 </LinearLayout>
    139