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             />
     40         <com.android.calculator2.ColorButton
     41             android:id="@+id/cos"
     42             android:text="@string/cos"
     43             style="@style/button_small_style"
     44             />
     45         <com.android.calculator2.ColorButton
     46             android:id="@+id/tan"
     47             android:text="@string/tan"
     48             style="@style/button_small_style"
     49             />
     50         <com.android.calculator2.ColorButton
     51             android:id="@+id/pi"
     52             android:text="@string/pi"
     53             style="@style/button_style"
     54             />
     55         <com.android.calculator2.ColorButton
     56             android:id="@+id/factorial"
     57             android:text="@string/factorial"
     58             style="@style/button_style"
     59             />
     60     </LinearLayout>
     61 
     62     <LinearLayout
     63         android:layout_weight="1"
     64         android:layout_width="match_parent"
     65         android:layout_height="0dp"
     66         >
     67         <com.android.calculator2.ColorButton
     68             android:id="@+id/ln"
     69             android:text="@string/ln"
     70             style="@style/button_small_style"
     71             />
     72         <com.android.calculator2.ColorButton
     73             android:id="@+id/lg"
     74             android:text="@string/lg"
     75             style="@style/button_small_style"
     76             />
     77         <com.android.calculator2.ColorButton
     78             android:id="@+id/e"
     79             android:text="@string/e"
     80             style="@style/button_style"
     81             />
     82         <com.android.calculator2.ColorButton
     83             android:id="@+id/power"
     84             android:text="@string/power"
     85             style="@style/button_style"
     86             />
     87         <com.android.calculator2.ColorButton
     88             android:id="@+id/sqrt"
     89             android:text="@string/sqrt"
     90             style="@style/button_style"
     91             />
     92     </LinearLayout>
     93 </LinearLayout>
     94