Comments (4)
@liuhaoer 您好,这个只是测试的标记,不影响正式使用的,这个是标记功能,具体可以看MainActivity
from calendarview.
你好,这个标记功能,我怎么自定义指定呢?还有颜色我可以我怎么改变呢?我的项目需求大概是这样的:例如某几天我标记时正常的蓝色,某些天,我标记是异常的红色。希望您能提供一下说明文档,谢谢。
from calendarview.
@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
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();//动态更新
from calendarview.
@huanghaibin-dev thanks
from calendarview.
Related Issues (20)
- 日期选择问题
- 关于scheme_month_text_color属性
- 是不是已经含泪停止维护了 HOT 3
- 月视图时第一行日期很难点击一次就选中 HOT 2
- How to disable saturday and sunday from the calender HOT 1
- 请问大佬,如何设置月视图显示从本月10号到下个月9号?跪求解答
- CalendarViewDelegate 中 monthStringResId 属性 本该对应月文本id,代码中却对应到周的资源上了
- Bug:滑动过程中可能触发点击事件 HOT 3
- unable to install
- 这个默认值没有必要
- 年视图下的具体日期能否隐藏?
- 请问年视图下如何去掉日期,只显示月份?
- 可以只动态的更新某一天的显示吗 HOT 1
- 是否考虑迁移到mavenCentral ? HOT 5
- Is there DayView available in this amazing library?
- 初始默认隐藏布局:mCalendarLayout.hideCalendarView() 时下方的RecyclerView高度总是wrap_content
- 日历怎么选择一周
- 如何默认选中一个日期 HOT 1
- 范围选择如何设置开始和结束是同一天时间,请教
- 请问如何设置每一项item的高度
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendarview.