Metrics
0
Watch 9 Star 18 Fork 6

kyson / ThemeTimePickerAndroidApache-2.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
自定义的时间选择器 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

#TT日程管理V2.0开发系列3——自定义的时间选择器

###项目开源地址

###TT日程管理应用下载

解决了时间选择器控件颜色,文字等跟随系统的问题,可以自定义颜色。

##项目演示: 项目演示

##使用说明: 基本与原生的时间选择器相同

        mTimePicker = (ThemeTimePicker) this.findViewById(R.id.timepicker);
        mTimePicker.setIs24HourView(true);
        Calendar calendar = Calendar.getInstance();
        mTimePicker.setCurrentHour(calendar.get(Calendar.HOUR_OF_DAY));
        mTimePicker.setCurrentMinute(calendar.get(Calendar.MINUTE));
        mTimePicker.setupTheme(
                getResources().getColor(R.color.material_green),
                getResources().getDrawable(
                        R.drawable.tl_picker_divider_green_shape));

###更多使用方法

##更多

##License

Copyright (c) 2014 Kyson

Licensed under the Apache License, Version 2.0

Comments ( 0 )

You need to Sign in for post a comment

Help Search