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/advancedPad"
     23               android:layout_width="match_parent"
     24               android:layout_height="match_parent"
     25               android:layout_weight="1"
     26               android:orientation="vertical"
     27               android:layout_gravity="center"
     28               >
     29 
     30     <LinearLayout
     31         android:layout_weight="1"
     32         android:layout_width="match_parent"
     33         android:layout_height="0dp"
     34         >
     35         <com.android.calculator2.ColorButton
     36             android:id="@+id/sin"
     37             android:text="@string/sin"
     38             style="@style/button_small_style"
     39             android:contentDescription="@string/sinDesc"
     40             />
     41         <com.android.calculator2.ColorButton
     42             android:id="@+id/cos"
     43             android:text="@string/cos"
     44             style="@style/button_small_style"
     45             android:contentDescription="@string/cosDesc"
     46             />
     47         <com.android.calculator2.ColorButton
     48             android:id="@+id/tan"
     49             android:text="@string/tan"
     50             style="@style/button_small_style"
     51             android:contentDescription="@string/tanDesc"
     52             />
     53         <com.android.calculator2.ColorButton
     54             android:id="@+id/pi"
     55             android:text="@string/pi"
     56             style="@style/button_style"
     57             android:contentDescription="@string/piDesc"
     58             />
     59         <com.android.calculator2.ColorButton
     60             android:id="@+id/factorial"
     61             android:text="@string/factorial"
     62             style="@style/button_style"
     63             android:contentDescription="@string/factorialDesc"
     64             />
     65     </LinearLayout>
     66 
     67     <LinearLayout
     68         android:layout_weight="1"
     69         android:layout_width="match_parent"
     70         android:layout_height="0dp"
     71         >
     72         <com.android.calculator2.ColorButton
     73             android:id="@+id/ln"
     74             android:text="@string/ln"
     75             style="@style/button_small_style"
     76             android:contentDescription="@string/lnDesc"
     77             />
     78         <com.android.calculator2.ColorButton
     79             android:id="@+id/lg"
     80             android:text="@string/lg"
     81             style="@style/button_small_style"
     82             android:contentDescription="@string/lgDesc"
     83             />
     84         <com.android.calculator2.ColorButton
     85             android:id="@+id/e"
     86             android:text="@string/e"
     87             style="@style/button_style"
     88             android:contentDescription="@string/eDesc"
     89             />
     90         <com.android.calculator2.ColorButton
     91             android:id="@+id/power"
     92             android:text="@string/power"
     93             style="@style/button_style"
     94             android:contentDescription="@string/powerDesc"
     95             />
     96         <com.android.calculator2.ColorButton
     97             android:id="@+id/sqrt"
     98             android:text="@string/sqrt"
     99             style="@style/button_style"
    100             android:contentDescription="@string/sqrtDesc"
    101             />
    102     </LinearLayout>
    103 </LinearLayout>
    104