• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4/*
5 * Copyright (C) 2008, 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:orientation="vertical"
23              android:layout_width="match_parent"
24              android:layout_height="match_parent"
25              android:background="#ff000000">
26    <LinearLayout
27         android:layout_width="match_parent"
28         android:layout_height="0dp"
29         android:layout_weight="2"
30         >
31
32        <com.android.calculator2.CalculatorDisplay
33             android:id="@+id/display"
34             android:layout_width="0dp"
35             android:layout_weight="5"
36             android:layout_height="match_parent"
37             maxDigits="@integer/max_digits">
38
39            <com.android.calculator2.CalculatorEditText
40                style="@style/display_style" />
41            <com.android.calculator2.CalculatorEditText
42                style="@style/display_style" />
43
44        </com.android.calculator2.CalculatorDisplay>
45        <ImageButton android:id="@+id/overflow_menu"
46            android:layout_width="48dip"
47            android:layout_height="match_parent"
48            android:src="@drawable/ic_menu_overflow"
49            android:background="@android:color/transparent"
50            android:layout_marginLeft="8dip"
51            android:visibility="gone"/>
52        <FrameLayout
53            android:layout_width="0dp"
54            android:layout_weight="1"
55            android:layout_height="match_parent">
56            <!-- marginRight has to be 0 to catch border-touch -->
57            <com.android.calculator2.ColorButton
58                 android:id="@+id/clear"
59                 android:text="@string/clear"
60                 android:layout_width="match_parent"
61                 android:layout_height="match_parent"
62                 android:layout_marginRight="0dp"
63                 android:textSize="15dp"
64                 style="@style/button_style"
65                 />
66            <!-- marginRight has to be 0 to catch border-touch -->
67            <com.android.calculator2.ColorButton
68                 android:id="@+id/del"
69                 android:text="@string/del"
70                 android:layout_width="match_parent"
71                 android:layout_height="match_parent"
72                 android:layout_marginRight="0dp"
73                 android:textSize="15dp"
74                 style="@style/button_style"
75                 />
76        </FrameLayout>
77    </LinearLayout>
78
79    <android.support.v4.view.ViewPager
80         android:id="@+id/panelswitch"
81         android:layout_width="match_parent"
82         android:layout_height="0dp"
83         android:layout_weight="4"
84         />
85
86</LinearLayout>
87