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="100dp" 54 android:layout_height="match_parent"> 55 <!-- marginRight has to be 0 to catch border-touch --> 56 <com.android.calculator2.ColorButton 57 android:id="@+id/clear" 58 android:text="@string/clear" 59 android:textSize="15dp" 60 style="@style/button_style" 61 /> 62 <!-- marginRight has to be 0 to catch border-touch --> 63 <com.android.calculator2.ColorButton 64 android:id="@+id/del" 65 android:text="@string/del" 66 android:textSize="15dp" 67 style="@style/button_style" 68 android:contentDescription="@string/delDesc" 69 /> 70 </FrameLayout> 71 </LinearLayout> 72 73 <com.android.calculator2.CalculatorViewPager 74 android:id="@+id/panelswitch" 75 android:layout_width="match_parent" 76 android:layout_height="0dp" 77 android:layout_weight="4" 78 /> 79 80 </LinearLayout> 81