blob: cf8b6c062223836e1bad1c441c12115e07e291f8 [file] [log] [blame]
Annie Chind0f87d22016-10-24 09:04:12 -07001<?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 Chin36147982016-12-01 15:07:34 -080022 android:paddingTop="@dimen/history_divider_padding"
Annie Chind0f87d22016-10-24 09:04:12 -070023 android:clipChildren="false"
Annie Chin36147982016-12-01 15:07:34 -080024 android:clipToPadding="false"
Justin Klaassen39297782016-12-19 09:11:38 -080025 android:importantForAccessibility="no"
Annie Chind0f87d22016-10-24 09:04:12 -070026 android:orientation="vertical">
27
Annie Chin36147982016-12-01 15:07:34 -080028 <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 Chind0f87d22016-10-24 09:04:12 -070037 <TextView
38 android:id="@+id/history_date"
39 android:layout_width="match_parent"
Annie Chin36147982016-12-01 15:07:34 -080040 android:layout_height="wrap_content"
Annie Chind0f87d22016-10-24 09:04:12 -070041 android:fontFamily="sans-serif-medium"
Annie Chin36147982016-12-01 15:07:34 -080042 android:paddingStart="@dimen/result_padding_start"
43 android:paddingEnd="@dimen/result_padding_end"
Annie Chind0f87d22016-10-24 09:04:12 -070044 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 Chin8149c8c2016-11-28 13:44:09 -080055 <com.android.calculator2.AlignedTextView
Annie Chind0f87d22016-10-24 09:04:12 -070056 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 Chin06fd3cf2016-11-07 16:04:33 -080071 android:maxLines="1"
Annie Chind0f87d22016-10-24 09:04:12 -070072 android:textColor="@color/display_result_text_color" />
73
74</LinearLayout>