Home | History | Annotate | Download | only in layout-port
      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:orientation="vertical"
     26               android:layout_gravity="center"
     27               >
     28 
     29     <LinearLayout
     30         android:layout_weight="1"
     31         android:layout_width="match_parent"
     32         android:layout_height="0dp"
     33         >
     34         <com.android.calculator2.ColorButton
     35             android:id="@+id/sin"
     36             android:text="@string/sin"
     37             style="@style/button_small_style"
     38             android:contentDescription="@string/sinDesc"
     39             />
     40         <com.android.calculator2.ColorButton
     41             android:id="@+id/cos"
     42             android:text="@string/cos"
     43             style="@style/button_small_style"
     44             android:contentDescription="@string/cosDesc"
     45             />
     46         <com.android.calculator2.ColorButton
     47             android:id="@+id/tan"
     48             android:text="@string/tan"
     49             style="@style/button_small_style"
     50             android:contentDescription="@string/tanDesc"
     51             />
     52     </LinearLayout>
     53 
     54     <LinearLayout
     55         android:layout_weight="1"
     56         android:layout_width="match_parent"
     57         android:layout_height="0dp"
     58         >
     59         <com.android.calculator2.ColorButton
     60             android:id="@+id/ln"
     61             android:text="@string/ln"
     62             style="@style/button_small_style"
     63             android:contentDescription="@string/lnDesc"
     64             />
     65         <com.android.calculator2.ColorButton
     66             android:id="@+id/lg"
     67             android:text="@string/lg"
     68             style="@style/button_small_style"
     69             android:contentDescription="@string/lgDesc"
     70             />
     71         <com.android.calculator2.ColorButton
     72             android:id="@+id/factorial"
     73             android:text="@string/factorial"
     74             style="@style/button_style"
     75             android:contentDescription="@string/factorialDesc"
     76             />
     77     </LinearLayout>
     78 
     79     <LinearLayout
     80         android:layout_weight="1"
     81         android:layout_width="match_parent"
     82         android:layout_height="0dp"
     83         >
     84         <com.android.calculator2.ColorButton
     85             android:id="@+id/pi"
     86             android:text="@string/pi"
     87             style="@style/button_style"
     88             android:contentDescription="@string/piDesc"
     89             />
     90         <com.android.calculator2.ColorButton
     91             android:id="@+id/e"
     92             android:text="@string/e"
     93             style="@style/button_style"
     94             android:contentDescription="@string/eDesc"
     95             />
     96         <com.android.calculator2.ColorButton
     97             android:id="@+id/power"
     98             android:text="@string/power"
     99             style="@style/button_style"
    100             android:contentDescription="@string/powerDesc"
    101             />
    102     </LinearLayout>
    103 
    104     <LinearLayout
    105         android:layout_weight="1"
    106         android:layout_width="match_parent"
    107         android:layout_height="0dp"
    108         >
    109         <com.android.calculator2.ColorButton
    110             android:id="@+id/leftParen"
    111             android:text="@string/leftParen"
    112             style="@style/button_style"
    113             android:contentDescription="@string/leftParenDesc"
    114             />
    115         <com.android.calculator2.ColorButton
    116             android:id="@+id/rightParen"
    117             android:text="@string/rightParen"
    118             style="@style/button_style"
    119             android:contentDescription="@string/rightParenDesc"
    120             />
    121         <com.android.calculator2.ColorButton
    122             android:id="@+id/sqrt"
    123             android:text="@string/sqrt"
    124             style="@style/button_style"
    125             android:contentDescription="@string/sqrtDesc"
    126             />
    127     </LinearLayout>
    128 </LinearLayout>
    129