Android Open Source - our_days Custom Shape Square Image View






From Project

Back to project page our_days.

License

The source code is released under:

Apache License

If you think the Android project our_days 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.meg7.widget;
/* www  .j  av a2s. c  o  m*/
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;

public class CustomShapeSquareImageView extends CustomShapeImageView {

    public CustomShapeSquareImageView(Context context, int resourceId, int shape, int svgRawResourceId) {
        super(context, resourceId, shape, svgRawResourceId);
    }
    public CustomShapeSquareImageView(Context context) {
        super(context);
    }

    public CustomShapeSquareImageView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public CustomShapeSquareImageView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth());
    }
}




Java Source Code List

com.meg7.widget.BaseImageView.java
com.meg7.widget.CircleImageView.java
com.meg7.widget.CustomShapeImageView.java
com.meg7.widget.CustomShapeSquareImageView.java
com.meg7.widget.RectangleImageView.java
com.meg7.widget.SvgImageView.java
com.svgandroid.ParserHelper.java
com.svgandroid.SVGParseException.java
com.svgandroid.SVGParser.java
com.svgandroid.SVG.java
com.yemyatthu.ourdays.activity.MyConfigActivity.java
com.yemyatthu.ourdays.fragment.MyConfigFragment.java
com.yemyatthu.ourdays.widget.LoveWidgetProvider.java