huanghaibin-dev / CalendarView

Android上一个优雅、万能自定义UI、仿iOS、自定义动画,支持垂直、水平方向切换、支持周视图、自定义周起始、性能高效的日历控件,支持热插拔实现的UI定制!支持标记、自定义颜色、农历、自定义月视图各种显示模式等。Canvas绘制,速度快、占用内存低,你真的想不到日历居然还可以如此优雅!An elegant, highly customized and high-performance Calendar Widget on Android.
Apache License 2.0
9.11k stars 1.79k forks source link

周视图模式下,这样写下拉刷新没有效果 #181

Open itzhaokun opened 6 years ago

itzhaokun commented 6 years ago

<com.haibin.calendarview.CalendarLayout android:id="@+id/calendarLayout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#fff" android:orientation="vertical" app:calendar_show_mode="only_week_view" app:calendar_content_view_id="@+id/swipe_refresh"> <com.haibin.calendarview.CalendarView android:id="@+id/calendarView" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#fff" app:calendar_height="52dp" app:current_month_text_color="#333333" app:day_text_size="14sp" app:max_year="2022" app:min_year="2017" app:week_bar_view="com.aixuetang.mobile.activities.prework.EnglishWeekBar" app:current_month_lunar_text_color="#f90202" app:month_view="com.aixuetang.mobile.activities.prework.CustomMonthView" app:month_view_show_mode="mode_fix" app:other_month_lunar_text_color="#e1e1e1" app:other_month_text_color="#e1e1e1" app:scheme_text="" app:scheme_lunar_text_color="#e1e1e1" app:selected_lunar_text_color="#FFFFFF" app:selected_text_color="#FFFFFF" app:selected_theme_color="@color/select_bg" app:week_background="#fff" app:week_text_color="#111111" app:week_view="com.aixuetang.mobile.activities.prework.CustomWeekView" app:week_view_scrollable="false" app:week_start_with="mon" />

    <android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/swipe_refresh"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    <android.support.v7.widget.RecyclerView
        android:id="@+id/recyclerView"
       android:layout_marginLeft="6dp"
        android:paddingRight="15dp"
        android:background="@color/bg_color"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    </android.support.v4.widget.SwipeRefreshLayout>
</com.haibin.calendarview.CalendarLayout>
loyilin commented 5 years ago

@itzhaokun 我也遇到了,你解决了吗