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

如图 #8

Closed
liuhao2018 opened this issue May 5, 2017 · 4 comments
Closed

如图 #8

liuhao2018 opened this issue May 5, 2017 · 4 comments

Comments

@liuhao2018
Copy link

screenshot_2017-05-05-10-50-27-991_com haibin cal
为什么五月份这么多假,是Bug吗?

@liuhao2018 liuhao2018 reopened this May 5, 2017
@huanghaibin-dev
Copy link
Owner

@liuhaoer 您好,这个只是测试的标记,不影响正式使用的,这个是标记功能,具体可以看MainActivity

@dacaoyuan
Copy link

你好,这个标记功能,我怎么自定义指定呢?还有颜色我可以我怎么改变呢?我的项目需求大概是这样的:例如某几天我标记时正常的蓝色,某些天,我标记是异常的红色。希望您能提供一下说明文档,谢谢。

@huanghaibin-dev
Copy link
Owner

@dacaoyuan 你好,这个在项目的readme那里使用方法写的很详细
使用方法
<com.haibin.calendarview.CalendarView
android:id="@+id/calendarView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:min_year="2004"
app:scheme_text="假"
app:scheme_theme_color="@color/colorPrimary"
app:selected_color="#30cfcfcf"
app:selected_text_color="#333333"
app:week_background="#fff"
app:week_text_color="#111" />
attrs

api

public int getCurDay(); //今天
public int getCurMonth(); //当前的月份
public int getCurYear(); //今年
public void showSelectLayout(final int year); //快速弹出年份选择月份
public void closeSelectLayout(final int position); //关闭选择年份并跳转日期
public void setOnDateChangeListener(OnDateChangeListener listener);//添加事件
public void setOnDateSelectedListener(OnDateSelectedListener listener);//日期选择事件
public void setSchemeDate(List mSchemeDate);//标记日期
public void setStyle(int schemeThemeColor, int selectLayoutBackground, int lineBg);
public void update();//动态更新

@liuhao2018
Copy link
Author

@huanghaibin-dev thanks

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

3 participants