android-times-square
android-times-square copied to clipboard
If calendar doesn't take up all of the width it renders wrong when selecting a date
If I select a date (after scrolling down) and then scroll up the calendar will draw two months sort of on top of each other.
This occurs if I have the following:
<FrameLayout
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="2">
<com.squareup.timessquare.CalendarPickerView
android:id="@+id/calendar_view"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingBottom="16dp"
android:scrollbarStyle="outsideOverlay"
android:clipToPadding="false" />
</FrameLayout>
If I change the FrameLayout
to have a layout_width of wrap_content
or fill_parent
the problem doesn't occur.
See http://screencast.com/t/TrMp7Thwx for a screencast
@kjeremy can you try to create a small reproducible test case? (maybe as a PR against the sample app?). This looks crazy and I have no idea how to start trying to repro.
I'll see if I can't come up with something this weekend. It's hosted in a view pager if that's any help...