summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRohit Yengisetty <rohit@cyngn.com>2015-02-05 18:18:13 -0800
committerSteve Kondik <steve@cyngn.com>2015-10-18 13:52:08 -0700
commit64fbc7dbc0219819a198cd716aa036539d9f1ab6 (patch)
tree135dd34daf35a68d65bae74159fea681902f700a
parentb46529221f3a55546f12a71b85d2214b04633b0d (diff)
downloadandroid_frameworks_opt_datetimepicker-64fbc7dbc0219819a198cd716aa036539d9f1ab6.tar.gz
android_frameworks_opt_datetimepicker-64fbc7dbc0219819a198cd716aa036539d9f1ab6.tar.bz2
android_frameworks_opt_datetimepicker-64fbc7dbc0219819a198cd716aa036539d9f1ab6.zip
Datetimepicker : Fix 'Done' text clipping in DatePickerDialog
The text in the Done button gets clipped on the bottom when there isn't ample space to work with. Removing the padding introduced by the style. Not needed as min height is maintained by the button Change-Id: I871e8418e059dd034116ba2ceac37b97cc809a1b
-rw-r--r--res/layout/date_picker_done_button.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/layout/date_picker_done_button.xml b/res/layout/date_picker_done_button.xml
index ebe24d3..1ca8239 100644
--- a/res/layout/date_picker_done_button.xml
+++ b/res/layout/date_picker_done_button.xml
@@ -22,10 +22,12 @@
<Button
android:id="@+id/done"
style="?android:attr/buttonBarButtonStyle"
+ android:padding="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:text="@string/done_label"
android:textSize="@dimen/done_label_size"
android:textColor="@color/done_text_color" />
+
</LinearLayout>