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 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="0dip" 30 android:layout_weight="3" 31 android:orientation="horizontal" 32 android:layout_gravity="center_vertical" 33 android:gravity="center_vertical"> 34 35 <com.android.calculator2.CalculatorDisplay 36 android:id="@+id/display" 37 android:layout_width="0dip" 38 android:layout_height="match_parent" 39 android:layout_weight="1" 40 maxDigits="@integer/max_digits"> 41 42 <com.android.calculator2.CalculatorEditText 43 style="@style/display_style" /> 44 <com.android.calculator2.CalculatorEditText 45 style="@style/display_style" /> 46 47 </com.android.calculator2.CalculatorDisplay> 48 <ImageButton android:id="@+id/overflow_menu" 49 android:layout_width="48dip" 50 android:layout_height="match_parent" 51 android:src="@drawable/ic_menu_overflow" 52 android:background="@android:color/transparent" 53 android:layout_marginLeft="8dip" 54 android:visibility="gone"/> 55 </LinearLayout> 56 <LinearLayout 57 android:layout_width="match_parent" 58 android:layout_height="0dp" 59 android:layout_weight="1.5" 60 > 61 62 <View 63 android:background="@drawable/btn_function" 64 android:layout_width="0dp" 65 android:layout_height="match_parent" 66 android:layout_weight="3" 67 /> 68 69 <FrameLayout 70 android:layout_width="0dp" 71 android:layout_weight="1" 72 android:layout_height="match_parent"> 73 <!-- marginRight has to be 0 to catch border-touch --> 74 <com.android.calculator2.ColorButton 75 android:id="@+id/clear" 76 android:text="@string/clear" 77 android:layout_width="match_parent" 78 android:layout_height="match_parent" 79 android:layout_marginRight="0dp" 80 android:textSize="15dp" 81 style="@style/button_style" 82 /> 83 <!-- marginRight has to be 0 to catch border-touch --> 84 <com.android.calculator2.ColorButton 85 android:id="@+id/del" 86 android:text="@string/del" 87 android:layout_width="match_parent" 88 android:layout_height="match_parent" 89 android:layout_marginRight="0dp" 90 android:textSize="15dp" 91 style="@style/button_style" 92 /> 93 </FrameLayout> 94 95 </LinearLayout> 96 <android.support.v4.view.ViewPager 97 android:id="@+id/panelswitch" 98 android:layout_width="match_parent" 99 android:layout_height="0dp" 100 android:layout_weight="10" 101 /> 102 </LinearLayout> 103