blob: 3f7338d6b0df77cb4f002821ce89debfe7cc7b27 [file] [log] [blame]
Justin Klaassen4b3af052014-05-27 17:53:10 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2014 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
Justin Klaassen9d33cdc2016-02-21 14:16:14 -080018<com.android.calculator2.CalculatorDisplay
Justin Klaassen4b3af052014-05-27 17:53:10 -070019 xmlns:android="http://schemas.android.com/apk/res/android"
Justin Klaassen0587d222014-06-19 10:44:21 -070020 android:id="@+id/display"
Justin Klaassend06f51d2016-08-03 00:41:31 -070021 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
Justin Klaassen0587d222014-06-19 10:44:21 -070023 android:background="@color/display_background_color"
Annie Chin26e159e2016-05-18 15:17:14 -070024 android:elevation="4dip"
25 android:orientation="vertical">
Justin Klaassen4b3af052014-05-27 17:53:10 -070026
Annie Chin26e159e2016-05-18 15:17:14 -070027 <include layout="@layout/toolbar" />
Justin Klaassend48b7562015-04-16 16:51:38 -070028
Annie Chine918fd22016-03-09 11:07:54 -080029 <com.android.calculator2.CalculatorScrollView
30 android:id="@+id/formula_container"
Justin Klaassen4b3af052014-05-27 17:53:10 -070031 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
Annie Chine918fd22016-03-09 11:07:54 -080033 android:overScrollMode="never"
34 android:scrollbars="none">
35
Christine Franks7452d3a2016-10-27 13:41:18 -070036 <com.android.calculator2.CalculatorFormula
Annie Chine918fd22016-03-09 11:07:54 -080037 android:id="@+id/formula"
38 style="@style/DisplayTextStyle.Formula"
39 android:layout_width="wrap_content"
40 android:layout_height="match_parent"
Annie Chine918fd22016-03-09 11:07:54 -080041 android:ellipsize="none"
Annie Chind0f87d22016-10-24 09:04:12 -070042 android:maxLines="1"
43 android:textColor="@color/display_formula_text_color" />
Annie Chine918fd22016-03-09 11:07:54 -080044
45 </com.android.calculator2.CalculatorScrollView>
Justin Klaassen4b3af052014-05-27 17:53:10 -070046
Hans Boehm84614952014-11-25 18:46:17 -080047 <com.android.calculator2.CalculatorResult
Justin Klaassen4b3af052014-05-27 17:53:10 -070048 android:id="@+id/result"
Hans Boehm4a6b7cb2015-04-03 18:41:52 -070049 style="@style/DisplayTextStyle.Result"
Justin Klaassen4b3af052014-05-27 17:53:10 -070050 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
Hans Boehm7f83e362015-06-10 15:41:04 -070052 android:bufferType="spannable"
Justin Klaassen60e8f1b2015-06-08 10:29:20 -070053 android:singleLine="true"
Justin Klaassen4b3af052014-05-27 17:53:10 -070054 android:textColor="@color/display_result_text_color" />
55
Justin Klaassen9d33cdc2016-02-21 14:16:14 -080056</com.android.calculator2.CalculatorDisplay>