我对日历的布局有问题-“完成”按钮不完全可见

有什么想法应该怎么解决吗?我可能会将显示月份日期的区域缩小一点,但老实说,我找不到它们的布局……我知道有两个月的视图-一个显示五月,另一个显示六月的一部分。我可能会缩小甚至删除六月份的部分,但是它在哪里呢?
发布于 2014-05-14 16:08:32
尝试减少marginTop,将其设置为android:layout_marginTop="4dp",从
<com.android.calendar.recurrencepicker.LinearLayoutWithMaxWidth
android:id="@+id/weekGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_marginTop="8dp"
android:gravity="center_horizontal"
android:orientation="horizontal" >在那里是8dp。希望它能在视图中做出一些改变。
发布于 2014-05-14 16:32:45
我假设日历和按钮在相同的布局中,如果不是,但它们在一个布局中,并将其设置为height match_parent,然后给它一个weight_sum为1,并为日历0.9分配0dp height,为按钮分配0.1 weight和0dp height:
<LinearLayout
android:id="@+id/container_layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:orientation="vertical"
android:weightSum="1">
<LinearLayout
android:id="@+id/calendar"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="0.9">
<!-- calender layout contents -->
</LinearLayout>
<Button
android:id="@+id/done_button"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="0.1" />
</LinearLayout>https://stackoverflow.com/questions/23648696
复制相似问题