Giter Site home page Giter Site logo

如图 about calendarview HOT 4 CLOSED

huanghaibin-dev avatar huanghaibin-dev commented on April 27, 2024
如图

from calendarview.

Comments (4)

huanghaibin-dev avatar huanghaibin-dev commented on April 27, 2024

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

from calendarview.

dacaoyuan avatar dacaoyuan commented on April 27, 2024

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

from calendarview.

huanghaibin-dev avatar huanghaibin-dev commented on April 27, 2024

@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();//动态更新

from calendarview.

liuhao2018 avatar liuhao2018 commented on April 27, 2024

@huanghaibin-dev thanks

from calendarview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.