Work Time Sheet
via JitPack (to get current code)
project/build.gradle
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
module/build.gradle
compile 'com.github.hantrungkien:Work-Time-Sheet:1.1.3'
<htkien.timetable.WorkTimeSheet
android:id="@+id/work_time_sheet"
android:layout_width="match_parent"
android:layout_height="match_parent" />
See MainActivity.java to know how to use
@Override
public void onWeekCalendarSelected(int position) {
mWorkTimeSheet.setContentMonday(0, 10, 10, 20, 20, 30);
mWorkTimeSheet.setContentTuesday(0, 10, 10, 20, 20, 30);
mWorkTimeSheet.setContentWednesday(0, 10, 10, 20, 20, 30);
mWorkTimeSheet.setContentThurday(0, 10, 10, 20, 20, 30);
mWorkTimeSheet.setContentFriday(0, 10, 10, 20, 20, 30);
mWorkTimeSheet.setContentSaturday(0, 10, 10, 20, 20, 30);
mWorkTimeSheet.setContentSunday(0, 10, 10, 20, 20, 30);
}
If you've found an error, please file an issue.
Patches and new samples are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.
Copyright 2017 Kien Han Trung
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.