Open sweet-guy opened 4 years ago
问题布局:(希望大佬帮忙看一下) <com.haibin.calendarview.CalendarLayout android:id="@+id/calendar_parent" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:default_status="expand" app:calendar_show_mode="only_month_view" android:layout_below="@+id/title_date_text" app:calendar_content_view_id="@+id/bottom_expand"
<com.haibin.calendarview.CalendarView android:id="@+id/calendarview" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#fff" app:calendar_padding="10dp" app:month_view="com.haibin.calendarview.SimpleMonthView" app:calendar_height="40dp" app:current_month_text_color="#333333" app:min_year="2004" app:other_month_text_color="#e1e1e1" app:scheme_text="假" app:scheme_text_color="#333" app:scheme_theme_color="#333" app:selected_text_color="#fff" app:selected_theme_color="#00ACFF" app:week_background="#fff" app:week_text_size="13sp" app:week_view="com.haibin.calendarview.SimpleWeekView" app:year_view_day_text_color="#333333" app:year_view_day_text_size="9sp" app:year_view_month_text_size="20sp" app:current_day_text_color="#333333" </com.haibin.calendarview.CalendarView> <FrameLayout android:id="@+id/bottom_expand" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FAFAFA" android:layout_marginBottom="49dp" android:layout_below="@+id/calendar_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/moth_calendar_data" android:layout_below="@+id/rv_expend" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="20dp" android:minHeight="600dp" android:background="#FAFAFA"></androidx.recyclerview.widget.RecyclerView>
<com.haibin.calendarview.CalendarView android:id="@+id/calendarview" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#fff" app:calendar_padding="10dp" app:month_view="com.haibin.calendarview.SimpleMonthView" app:calendar_height="40dp" app:current_month_text_color="#333333" app:min_year="2004" app:other_month_text_color="#e1e1e1" app:scheme_text="假" app:scheme_text_color="#333" app:scheme_theme_color="#333" app:selected_text_color="#fff" app:selected_theme_color="#00ACFF" app:week_background="#fff" app:week_text_size="13sp" app:week_view="com.haibin.calendarview.SimpleWeekView" app:year_view_day_text_color="#333333" app:year_view_day_text_size="9sp" app:year_view_month_text_size="20sp" app:current_day_text_color="#333333"
</com.haibin.calendarview.CalendarView> <FrameLayout android:id="@+id/bottom_expand" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FAFAFA" android:layout_marginBottom="49dp" android:layout_below="@+id/calendar_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/moth_calendar_data" android:layout_below="@+id/rv_expend" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="20dp" android:minHeight="600dp" android:background="#FAFAFA"></androidx.recyclerview.widget.RecyclerView>
<RelativeLayout android:id="@+id/rv_expend" android:layout_width="match_parent" android:layout_height="20dp" android:layout_below="@+id/calendar_parent" android:background="#ffffff"> <ImageView android:id="@+id/calendar_select" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/open" android:layout_centerVertical="true" android:layout_centerHorizontal="true" ></ImageView> </RelativeLayout>
</com.haibin.calendarview.CalendarLayout>
我也是这样子的,你给recyclewView设置个background=white试试,我是这样弄好的
这个应该和颜色没关系,我上边布局是加颜色的,现在是部分机型会出现recycleview顶出屏幕看不到数据
问题布局:(希望大佬帮忙看一下) <com.haibin.calendarview.CalendarLayout android:id="@+id/calendar_parent" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:default_status="expand" app:calendar_show_mode="only_month_view" android:layout_below="@+id/title_date_text" app:calendar_content_view_id="@+id/bottom_expand"