Android Open Source - CalendarView Square Text View






From Project

Back to project page CalendarView.

License

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.

Java Source Code

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);
  }
}




Java Source Code List

com.pet.calendar.MainActivity.java
com.pet.calendar.adapter.CalendarAdapter.java
com.pet.calendar.adapter.DatePickerCalendar.java
com.pet.calendar.adapter.OnDateSelectListener.java
com.pet.calendar.view.SquareTextView.java