blob: 11760fb6707d8731db33988456451857a01a3301 [file] [log] [blame]
Annie Chin26e159e2016-05-18 15:17:14 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2016 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17
18<com.android.calculator2.CalculatorDisplay
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/display"
Justin Klaassend06f51d2016-08-03 00:41:31 -070021 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
Annie Chin26e159e2016-05-18 15:17:14 -070023 android:background="@color/display_background_color"
24 android:clipChildren="false"
25 android:elevation="4dip"
26 android:orientation="vertical">
27
28 <include layout="@layout/toolbar" />
29
30 <FrameLayout
31 android:layout_width="match_parent"
32 android:layout_height="match_parent">
33
34 <com.android.calculator2.CalculatorScrollView
35 android:id="@+id/formula_container"
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
38 android:layout_gravity="bottom"
39 android:overScrollMode="never"
40 android:scrollbars="none">
41
Christine Franks7452d3a2016-10-27 13:41:18 -070042 <com.android.calculator2.CalculatorFormula
Annie Chin26e159e2016-05-18 15:17:14 -070043 android:id="@+id/formula"
44 style="@style/DisplayTextStyle.Formula"
45 android:layout_width="wrap_content"
46 android:layout_height="match_parent"
47 android:layout_gravity="bottom|end"
48 android:ellipsize="none"
49 android:gravity="bottom|end"
50 android:longClickable="true"
51 android:singleLine="true"
52 android:textColor="@color/display_formula_text_color"
53 android:textIsSelectable="false" />
54
55 </com.android.calculator2.CalculatorScrollView>
56
57 <com.android.calculator2.CalculatorResult
58 android:id="@+id/result"
59 style="@style/DisplayTextStyle.Result"
60 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_gravity="bottom"
63 android:bufferType="spannable"
64 android:singleLine="true"
65 android:textColor="@color/display_result_text_color"
66 android:visibility="invisible" />
67
68 </FrameLayout>
69
70</com.android.calculator2.CalculatorDisplay>