AndroidCalendarLib is a tool that you can generate a calendar easily in your android app.
AndroidCalendarLib needs to depend on the following environment:
1. Java 1.6 or above
2. Eclipse
3. Android SDK
Please clone this lib to your workspace first.
git clone https://github.com/Ken-Yang/AndroidCalendarLib.git
File->Import->Existing Projects into Workspace
Right Click on your project -> Properties -> Android -> Add -> <<Select AndroidCalendarLib>> -> OK
<net.kenyang.libcalendarview.CalendarView
android:id="@+id/cvTest"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</net.kenyang.libcalendarview.CalendarView>
CalendarView cv = (CalendarView) findViewById(R.id.cvTest);
Calendar calendar = Calendar.getInstance(TimeZone.getDefault());
OnClickListener listener = new OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(getApplicationContext(), v.getTag().toString(), Toast.LENGTH_SHORT).show();
}
};
cv.fnGenerate(calendar, listener);
Copyright 2013 Ken Yang
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.