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 | |
| 18 | <RelativeLayout |
| 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 | 4b3af05 | 2014-05-27 17:53:10 -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" |
| 24 | android:elevation="4dip"> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 25 | |
Justin Klaassen | d48b756 | 2015-04-16 16:51:38 -0700 | [diff] [blame] | 26 | <Toolbar |
| 27 | android:id="@+id/toolbar" |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="?android:attr/actionBarSize"> |
| 30 | |
| 31 | <TextView |
Justin Klaassen | e2711cb | 2015-05-28 11:13:17 -0700 | [diff] [blame] | 32 | android:id="@+id/mode" |
Justin Klaassen | d48b756 | 2015-04-16 16:51:38 -0700 | [diff] [blame] | 33 | android:layout_width="wrap_content" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:fontFamily="sans-serif-medium" |
Hans Boehm | 76b7815 | 2015-04-17 10:50:35 -0700 | [diff] [blame] | 36 | android:textAllCaps="true" |
| 37 | android:textSize="16sp" /> |
Justin Klaassen | d48b756 | 2015-04-16 16:51:38 -0700 | [diff] [blame] | 38 | |
| 39 | </Toolbar> |
| 40 | |
Hans Boehm | 08e8f32 | 2015-04-21 13:18:38 -0700 | [diff] [blame] | 41 | <com.android.calculator2.CalculatorText |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 42 | android:id="@+id/formula" |
Hans Boehm | 08e8f32 | 2015-04-21 13:18:38 -0700 | [diff] [blame] | 43 | style="@style/DisplayTextStyle.Formula" |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="wrap_content" |
Justin Klaassen | d48b756 | 2015-04-16 16:51:38 -0700 | [diff] [blame] | 46 | android:layout_below="@id/toolbar" |
Hans Boehm | 08e8f32 | 2015-04-21 13:18:38 -0700 | [diff] [blame] | 47 | android:ellipsize="none" |
Hans Boehm | 76b7815 | 2015-04-17 10:50:35 -0700 | [diff] [blame] | 48 | android:longClickable="true" |
| 49 | android:singleLine="true" |
Hans Boehm | 08e8f32 | 2015-04-21 13:18:38 -0700 | [diff] [blame] | 50 | android:scrollHorizontally="true" |
Hans Boehm | 76b7815 | 2015-04-17 10:50:35 -0700 | [diff] [blame] | 51 | android:textColor="@color/display_formula_text_color" |
| 52 | android:textIsSelectable="false" /> |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 53 | |
Hans Boehm | 8461495 | 2014-11-25 18:46:17 -0800 | [diff] [blame] | 54 | <com.android.calculator2.CalculatorResult |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 55 | android:id="@+id/result" |
Hans Boehm | 4a6b7cb | 2015-04-03 18:41:52 -0700 | [diff] [blame] | 56 | style="@style/DisplayTextStyle.Result" |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:layout_below="@id/formula" |
Hans Boehm | 7f83e36 | 2015-06-10 15:41:04 -0700 | [diff] [blame] | 60 | android:bufferType="spannable" |
Justin Klaassen | 60e8f1b | 2015-06-08 10:29:20 -0700 | [diff] [blame] | 61 | android:singleLine="true" |
Justin Klaassen | 4b3af05 | 2014-05-27 17:53:10 -0700 | [diff] [blame] | 62 | android:textColor="@color/display_result_text_color" /> |
| 63 | |
Hans Boehm | 8461495 | 2014-11-25 18:46:17 -0800 | [diff] [blame] | 64 | </RelativeLayout> |