• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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            />
39        <com.android.calculator2.ColorButton
40            android:id="@+id/cos"
41            android:text="@string/cos"
42            style="@style/button_small_style"
43            />
44        <com.android.calculator2.ColorButton
45            android:id="@+id/tan"
46            android:text="@string/tan"
47            style="@style/button_small_style"
48            />
49    </LinearLayout>
50
51    <LinearLayout
52        android:layout_weight="1"
53        android:layout_width="match_parent"
54        android:layout_height="0dp"
55        >
56        <com.android.calculator2.ColorButton
57            android:id="@+id/ln"
58            android:text="@string/ln"
59            style="@style/button_small_style"
60            />
61        <com.android.calculator2.ColorButton
62            android:id="@+id/lg"
63            android:text="@string/lg"
64            style="@style/button_small_style"
65            />
66        <com.android.calculator2.ColorButton
67            android:id="@+id/factorial"
68            android:text="@string/factorial"
69            style="@style/button_style"
70            />
71    </LinearLayout>
72
73    <LinearLayout
74        android:layout_weight="1"
75        android:layout_width="match_parent"
76        android:layout_height="0dp"
77        >
78        <com.android.calculator2.ColorButton
79            android:id="@+id/pi"
80            android:text="@string/pi"
81            style="@style/button_style"
82            />
83        <com.android.calculator2.ColorButton
84            android:id="@+id/e"
85            android:text="@string/e"
86            style="@style/button_style"
87            />
88        <com.android.calculator2.ColorButton
89            android:id="@+id/power"
90            android:text="@string/power"
91            style="@style/button_style"
92            />
93    </LinearLayout>
94
95    <LinearLayout
96        android:layout_weight="1"
97        android:layout_width="match_parent"
98        android:layout_height="0dp"
99        >
100        <com.android.calculator2.ColorButton
101            android:id="@+id/leftParen"
102            android:text="@string/leftParen"
103            style="@style/button_style"
104            />
105        <com.android.calculator2.ColorButton
106            android:id="@+id/rightParen"
107            android:text="@string/rightParen"
108            style="@style/button_style"
109            />
110        <com.android.calculator2.ColorButton
111            android:id="@+id/sqrt"
112            android:text="@string/sqrt"
113            style="@style/button_style"
114            />
115    </LinearLayout>
116</LinearLayout>
117