If you think the Android project logmypain 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.logmypain.utils;
//fromwww.java2s.comimport android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;
publicclass SquareLayout extends LinearLayout {
public SquareLayout(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
public SquareLayout(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
}
public SquareLayout(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
// TODO Auto-generated constructor stub
}
@Override publicvoid onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, widthMeasureSpec);
}
}