ExactCalculator: Round off bottom edge of display
Change-Id: I8ad5ddfec539e7a47555d1138e13584be4051b3d
diff --git a/res/drawable/rounded_bottom.xml b/res/drawable/rounded_bottom.xml
new file mode 100644
index 0000000..4a4b190
--- /dev/null
+++ b/res/drawable/rounded_bottom.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ SPDX-FileCopyrightText: 2023 The LineageOS Project
+ SPDX-License-Identifier: Apache-2.0
+-->
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <solid android:color="@color/display_background_color" />
+ <corners
+ android:bottomLeftRadius="@dimen/display_corner_radius"
+ android:bottomRightRadius="@dimen/display_corner_radius" />
+</shape>
diff --git a/res/layout/display_one_line.xml b/res/layout/display_one_line.xml
index 11760fb..ca694b5 100644
--- a/res/layout/display_one_line.xml
+++ b/res/layout/display_one_line.xml
@@ -20,7 +20,7 @@
android:id="@+id/display"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@color/display_background_color"
+ android:background="@drawable/rounded_bottom"
android:clipChildren="false"
android:elevation="4dip"
android:orientation="vertical">
diff --git a/res/layout/display_two_line.xml b/res/layout/display_two_line.xml
index 3f7338d..59dd4f9 100644
--- a/res/layout/display_two_line.xml
+++ b/res/layout/display_two_line.xml
@@ -20,7 +20,7 @@
android:id="@+id/display"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@color/display_background_color"
+ android:background="@drawable/rounded_bottom"
android:elevation="4dip"
android:orientation="vertical">
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index e1a59a0..567f2b0 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -22,6 +22,8 @@
<dimen name="history_item_text_padding_top">8dip</dimen>
<dimen name="history_item_text_padding_bottom">16dip</dimen>
+ <dimen name="display_corner_radius">16dp</dimen>
+
<!-- Dimens for display formula. -->
<dimen name="formula_padding_top">16dip</dimen>
<dimen name="formula_padding_bottom">8dip</dimen>