Created
July 20, 2017 13:16
-
-
Save florent37/ff8880c0227b6408494df540ee9bb1b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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