| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2016 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="@dimen/history_divider_padding" |
| android:clipChildren="false" |
| android:clipToPadding="false" |
| android:importantForAccessibility="no" |
| android:orientation="vertical"> |
| |
| <View |
| android:id="@+id/history_divider" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/history_divider_padding" |
| android:layout_marginBottom="@dimen/history_divider_padding" |
| android:background="?android:attr/listDivider" |
| android:importantForAccessibility="no" /> |
| |
| <TextView |
| android:id="@+id/history_date" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:fontFamily="sans-serif-medium" |
| android:paddingStart="@dimen/result_padding_start" |
| android:paddingEnd="@dimen/result_padding_end" |
| android:text="@string/title_current_expression" |
| android:textColor="?attr/colorAccent" |
| android:textSize="14dp" /> |
| |
| <com.android.calculator2.CalculatorScrollView |
| android:id="@+id/history_formula_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:overScrollMode="never" |
| android:scrollbars="none"> |
| |
| <com.android.calculator2.AlignedTextView |
| android:id="@+id/history_formula" |
| style="@style/HistoryItemTextStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:ellipsize="none" |
| android:textColor="@color/display_formula_text_color" /> |
| |
| </com.android.calculator2.CalculatorScrollView> |
| |
| <com.android.calculator2.CalculatorResult |
| android:id="@+id/history_result" |
| style="@style/HistoryItemTextStyle" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:bufferType="spannable" |
| android:maxLines="1" |
| android:textColor="@color/display_result_text_color" /> |
| |
| </LinearLayout> |