Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 1 | <?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 Klaassen | 9d33cdc | 2016-02-21 14:16:14 -0800 | [diff] [blame] | 18 | <com.android.calculator2.CalculatorDisplay |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Justin Klaassen | 0587d22 | 2014-06-19 10:44:21 -0700 | [diff] [blame] | 20 | android:id="@+id/display" |
Justin Klaassen | d06f51d | 2016-08-03 00:41:31 -0700 | [diff] [blame] | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
Justin Klaassen | 0587d22 | 2014-06-19 10:44:21 -0700 | [diff] [blame] | 23 | android:background="@color/display_background_color" |
Annie Chin | 26e159e | 2016-05-18 15:17:14 -0700 | [diff] [blame] | 24 | android:elevation="4dip" |
| 25 | android:orientation="vertical"> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 26 | |
Annie Chin | 26e159e | 2016-05-18 15:17:14 -0700 | [diff] [blame] | 27 | <include layout="@layout/toolbar" /> |
Justin Klaassen | d48b756 | 2015-04-16 16:51:38 -0700 | [diff] [blame] | 28 | |
Annie Chin | e918fd2 | 2016-03-09 11:07:54 -0800 | [diff] [blame] | 29 | <com.android.calculator2.CalculatorScrollView |
| 30 | android:id="@+id/formula_container" |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="wrap_content" |
Annie Chin | e918fd2 | 2016-03-09 11:07:54 -0800 | [diff] [blame] | 33 | android:overScrollMode="never" |
| 34 | android:scrollbars="none"> |
| 35 | |
Christine Franks | 7452d3a | 2016-10-27 13:41:18 -0700 | [diff] [blame] | 36 | <com.android.calculator2.CalculatorFormula |
Annie Chin | e918fd2 | 2016-03-09 11:07:54 -0800 | [diff] [blame] | 37 | android:id="@+id/formula" |
| 38 | style="@style/DisplayTextStyle.Formula" |
| 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="match_parent" |
Annie Chin | e918fd2 | 2016-03-09 11:07:54 -0800 | [diff] [blame] | 41 | android:ellipsize="none" |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 42 | android:maxLines="1" |
| 43 | android:textColor="@color/display_formula_text_color" /> |
Annie Chin | e918fd2 | 2016-03-09 11:07:54 -0800 | [diff] [blame] | 44 | |
| 45 | </com.android.calculator2.CalculatorScrollView> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 46 | |
Hans Boehm | 8461495 | 2014-11-25 18:46:17 -0800 | [diff] [blame] | 47 | <com.android.calculator2.CalculatorResult |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 48 | android:id="@+id/result" |
Hans Boehm | 4a6b7cb | 2015-04-03 18:41:52 -0700 | [diff] [blame] | 49 | style="@style/DisplayTextStyle.Result" |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 50 | android:layout_width="match_parent" |
| 51 | android:layout_height="wrap_content" |
Hans Boehm | 7f83e36 | 2015-06-10 15:41:04 -0700 | [diff] [blame] | 52 | android:bufferType="spannable" |
Justin Klaassen | 60e8f1b | 2015-06-08 10:29:20 -0700 | [diff] [blame] | 53 | android:singleLine="true" |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 54 | android:textColor="@color/display_result_text_color" /> |
| 55 | |
Justin Klaassen | 9d33cdc | 2016-02-21 14:16:14 -0800 | [diff] [blame] | 56 | </com.android.calculator2.CalculatorDisplay> |