在Android的调整大小的DatePicker的 [英] Resizing of DatePicker in android

查看:770
本文介绍了在Android的调整大小的DatePicker的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能减少一个datepicker的大小(高度和宽度)?有没有内置方法可用于此?

How can I reduce the size (height and width) of a DatePicker? Is there any built-in method available for this?

推荐答案

没有。不能降低超越其最小尺寸的图的大小。 使用WRAP_CONTENT确保DatePicker的只是足够大包围它的内容。

No. You cannot reduce the size of a view beyond their minimum size. Using wrap_content ensures that the DatePicker is just big enough to enclose its contents.

<DatePicker
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
/>

这篇关于在Android的调整大小的DatePicker的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆