Back to project page BoggleGame.
The source code is released under:
MIT License
If you think the Android project BoggleGame listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * SquareTextView.java//from w w w .ja v a 2 s.co m * CS 454 * Group 2 */ package com.example.wordboggle; 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) { super(context, attrs); //--- Additional custom code -- } public SquareTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); //--- Additional custom code -- } /* * set the height of the text view equal to the text view's width */ @Override public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, widthMeasureSpec); } }