Back to project page android_google_image_searcher.
The source code is released under:
GNU General Public License
If you think the Android project android_google_image_searcher 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.github.snambi.googleimagesearcher; /*from w w w .j av a 2 s . c o m*/ import android.content.Context; import android.util.AttributeSet; import android.widget.ImageView; public class SquareImage extends ImageView { public SquareImage(Context context) { super(context); } public SquareImage(Context context, AttributeSet attrs) { super(context, attrs); } public SquareImage(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); int width = getMeasuredWidth(); setMeasuredDimension(width, width); } }