Skip to content

Instantly share code, notes, and snippets.

@florent37
Created July 20, 2017 13:16
Show Gist options
  • Save florent37/ff8880c0227b6408494df540ee9bb1b7 to your computer and use it in GitHub Desktop.
Save florent37/ff8880c0227b6408494df540ee9bb1b7 to your computer and use it in GitHub Desktop.
import android.content.Context;
import android.support.annotation.AttrRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.widget.FrameLayout;
/**
* Created by florentchampigny on 20/07/2017.
*/
public class RectFrameLayout extends FrameLayout {
public RectFrameLayout(@NonNull Context context) {
super(context);
}
public RectFrameLayout(@NonNull Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
public RectFrameLayout(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, widthMeasureSpec);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment