Back to project page FindYourWords.
The source code is released under:
Apache License
If you think the Android project FindYourWords 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 grid; //w ww. j av a2s. c om import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.widget.RelativeLayout; public class RelativeLayoutView extends RelativeLayout { public static int parentWidth; public static int parentHeight; public RelativeLayoutView(Context context) { super(context); Log.e("const", "1"); } public RelativeLayoutView(Context context, AttributeSet attrs) { super(context, attrs); Log.e("rL", "2"); } public RelativeLayoutView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); Log.e("const", "3"); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){ parentWidth = MeasureSpec.getSize(widthMeasureSpec); parentHeight = MeasureSpec.getSize(heightMeasureSpec); super.onMeasure(widthMeasureSpec, heightMeasureSpec); } }