1 Star 1 Fork 0

MarkYe / YrMTimeDialog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

#YrMTimeDialog 就前两天的事情由于项目上需要用到时间选择器,系统的又无法满足,无奈之下自定义了一个,由于时间紧急未做优化。 版本v1.0.0 支持日期选择 支持月份选择 支持年份选择 未添加时间星期显示,预计下版本添加

版本v1.1.0 新增时间星期显示

依赖 compile 'com.android.support:appcompat-v7:25.0.0' compile 'com.android.support:recyclerview-v7:25.0.0'

使用方法 实现接口: implements MTimeOnClickListener 实例化: MTimeDialog mTimeDialog = new MTimeDialog(this); 设置监听: mTimeDialog.setMTimeOnClickListener(this);

日期选择: mTimeDialog.showDayTime(); 月份选择: mTimeDialog.showMonthTime(); 年份选择: mTimeDialog.showYearTime();

@Override
public void getYear(int year) {//year对话框点击确定时调用
    tv_time.setText(year + "年");
}

@Override
public void getYear_Month(int year, int month) {//month对话框点击确定时调用
    tv_time.setText(year + "年" + month + "月");
}

@Override
public void getYear_Month_Day(int year, int month, int day) {//日期对话框点击确定时调用
    tv_time.setText(year + "年" + month + "月" + day + "日");

}

空文件

简介

一个自定义的时间选择器 1.选择日期 2.选择月份 3.选择年份 展开 收起
Android
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/yrmao/YrMTimeDialog.git
git@gitee.com:yrmao/YrMTimeDialog.git
yrmao
YrMTimeDialog
YrMTimeDialog
master

搜索帮助