我可以知道如何在Android中调整CalendarView
的尺寸吗? CalendarView
占据了屏幕的一半以上。 我希望使它更小,也许屏幕的40%。谢谢。在我的智能手机如何缩小CalendarView的大小?
默认CalendarView大小,占据了一半以上
我目前的XML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.ada.landing.MainActivity">
<CalendarView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/calendarView"
android:firstDayOfWeek="2"/></RelativeLayout>
我尝试另一种方式来定义CalendarView
,但整体高度降低,但它不按比例收缩:
<CalendarView
android:layout_width="500dp"
android:layout_height="200dp"
android:id="@+id/calendarView"
android:firstDayOfWeek="2" />
在这里发布你的XML – SripadRaj
@SripadRaj我更新了我的帖子。希望你能帮助。谢谢。 –
我面临同样的问题任何人有解决方案请帮助 –