Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 1 | <?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 | <LinearLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
Annie Chin | 3614798 | 2016-12-01 15:07:34 -0800 | [diff] [blame] | 22 | android:paddingTop="@dimen/history_divider_padding" |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 23 | android:clipChildren="false" |
Annie Chin | 3614798 | 2016-12-01 15:07:34 -0800 | [diff] [blame] | 24 | android:clipToPadding="false" |
Justin Klaassen | 3929778 | 2016-12-19 09:11:38 -0800 | [diff] [blame] | 25 | android:importantForAccessibility="no" |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 26 | android:orientation="vertical"> |
| 27 | |
Annie Chin | 3614798 | 2016-12-01 15:07:34 -0800 | [diff] [blame] | 28 | <View |
| 29 | android:id="@+id/history_divider" |
| 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:layout_marginTop="@dimen/history_divider_padding" |
| 33 | android:layout_marginBottom="@dimen/history_divider_padding" |
| 34 | android:background="?android:attr/listDivider" |
| 35 | android:importantForAccessibility="no" /> |
| 36 | |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 37 | <TextView |
| 38 | android:id="@+id/history_date" |
| 39 | android:layout_width="match_parent" |
Annie Chin | 3614798 | 2016-12-01 15:07:34 -0800 | [diff] [blame] | 40 | android:layout_height="wrap_content" |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 41 | android:fontFamily="sans-serif-medium" |
Annie Chin | 3614798 | 2016-12-01 15:07:34 -0800 | [diff] [blame] | 42 | android:paddingStart="@dimen/result_padding_start" |
| 43 | android:paddingEnd="@dimen/result_padding_end" |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 44 | android:text="@string/title_current_expression" |
| 45 | android:textColor="?android:attr/colorAccent" |
| 46 | android:textSize="14dp" /> |
| 47 | |
| 48 | <com.android.calculator2.CalculatorScrollView |
| 49 | android:id="@+id/history_formula_container" |
| 50 | android:layout_width="match_parent" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:overScrollMode="never" |
| 53 | android:scrollbars="none"> |
| 54 | |
Annie Chin | 8149c8c | 2016-11-28 13:44:09 -0800 | [diff] [blame] | 55 | <com.android.calculator2.AlignedTextView |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 56 | android:id="@+id/history_formula" |
| 57 | style="@style/HistoryItemTextStyle" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="match_parent" |
| 60 | android:ellipsize="none" |
| 61 | android:textColor="@color/display_formula_text_color" /> |
| 62 | |
| 63 | </com.android.calculator2.CalculatorScrollView> |
| 64 | |
| 65 | <com.android.calculator2.CalculatorResult |
| 66 | android:id="@+id/history_result" |
| 67 | style="@style/HistoryItemTextStyle" |
| 68 | android:layout_width="match_parent" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:bufferType="spannable" |
Annie Chin | 06fd3cf | 2016-11-07 16:04:33 -0800 | [diff] [blame] | 71 | android:maxLines="1" |
Annie Chin | d0f87d2 | 2016-10-24 09:04:12 -0700 | [diff] [blame] | 72 | android:textColor="@color/display_result_text_color" /> |
| 73 | |
| 74 | </LinearLayout> |