Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始默认隐藏布局:mCalendarLayout.hideCalendarView() 时下方的RecyclerView高度总是wrap_content #838

Open
dengzibo504 opened this issue Sep 12, 2023 · 0 comments

Comments

@dengzibo504
Copy link

我想要让它match_parent

布局文件:
<com.haibin.calendarview.CalendarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/header_calendar_layout"
android:orientation="vertical"
app:calendar_show_mode="both_month_week_view"
app:calendar_content_view_id="@id/recyclerview_task"
app:default_status="shrink">

            <com.haibin.calendarview.CalendarView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/calendar_view_bar"
                android:gravity="bottom"
                app:select_mode="single_mode"
                app:week_start_with="mon"
                app:week_bar_view="com.dzb.mytasklist.widget.DateWeekBar"
                app:week_view="com.dzb.mytasklist.widget.DateWeekView"
                app:month_view="com.dzb.mytasklist.widget.DateMonthView"
                app:month_view_show_mode="mode_only_current" />

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/recyclerview_task"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/WhiteSmoke" />


        </com.haibin.calendarview.CalendarLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant