blob: 638f0d27ab7093b7c8fb1371e1c7d70c08e13374 [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
18<RelativeLayout
19 xmlns:android="http://schemas.android.com/apk/res/android"
Justin Klaassen0587d222014-06-19 10:44:21 -070020 android:id="@+id/display"
Justin Klaassen4b3af052014-05-27 17:53:10 -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"
24 android:elevation="4dip">
Justin Klaassen4b3af052014-05-27 17:53:10 -070025
Justin Klaassend48b7562015-04-16 16:51:38 -070026 <Toolbar
27 android:id="@+id/toolbar"
28 android:layout_width="match_parent"
29 android:layout_height="?android:attr/actionBarSize">
30
31 <TextView
Justin Klaassene2711cb2015-05-28 11:13:17 -070032 android:id="@+id/mode"
Justin Klaassend48b7562015-04-16 16:51:38 -070033 android:layout_width="wrap_content"
34 android:layout_height="wrap_content"
35 android:fontFamily="sans-serif-medium"
Hans Boehm76b78152015-04-17 10:50:35 -070036 android:textAllCaps="true"
37 android:textSize="16sp" />
Justin Klaassend48b7562015-04-16 16:51:38 -070038
39 </Toolbar>
40
Hans Boehm08e8f322015-04-21 13:18:38 -070041 <com.android.calculator2.CalculatorText
Justin Klaassen4b3af052014-05-27 17:53:10 -070042 android:id="@+id/formula"
Hans Boehm08e8f322015-04-21 13:18:38 -070043 style="@style/DisplayTextStyle.Formula"
Justin Klaassen4b3af052014-05-27 17:53:10 -070044 android:layout_width="match_parent"
45 android:layout_height="wrap_content"
Justin Klaassend48b7562015-04-16 16:51:38 -070046 android:layout_below="@id/toolbar"
Hans Boehm08e8f322015-04-21 13:18:38 -070047 android:ellipsize="none"
Hans Boehm76b78152015-04-17 10:50:35 -070048 android:longClickable="true"
49 android:singleLine="true"
Hans Boehm08e8f322015-04-21 13:18:38 -070050 android:scrollHorizontally="true"
Hans Boehm76b78152015-04-17 10:50:35 -070051 android:textColor="@color/display_formula_text_color"
52 android:textIsSelectable="false" />
Justin Klaassen4b3af052014-05-27 17:53:10 -070053
Hans Boehm84614952014-11-25 18:46:17 -080054 <com.android.calculator2.CalculatorResult
Justin Klaassen4b3af052014-05-27 17:53:10 -070055 android:id="@+id/result"
Hans Boehm4a6b7cb2015-04-03 18:41:52 -070056 style="@style/DisplayTextStyle.Result"
Justin Klaassen4b3af052014-05-27 17:53:10 -070057 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:layout_below="@id/formula"
Hans Boehm7f83e362015-06-10 15:41:04 -070060 android:bufferType="spannable"
Justin Klaassen60e8f1b2015-06-08 10:29:20 -070061 android:singleLine="true"
Justin Klaassen4b3af052014-05-27 17:53:10 -070062 android:textColor="@color/display_result_text_color" />
63
Hans Boehm84614952014-11-25 18:46:17 -080064</RelativeLayout>