Back to project page CalendarView.
The source code is released under:
MIT License
If you think the Android project CalendarView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.pet.calendar.view; // w w w . j ava 2 s. c o m import android.content.Context; import android.util.AttributeSet; import android.widget.TextView; public class SquareTextView extends TextView { public SquareTextView(Context context) { super(context); // TODO Auto-generated constructor stub } public SquareTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // TODO Auto-generated constructor stub } public SquareTextView(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub } @Override public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, widthMeasureSpec); } @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, w, oldw, oldh); } }