Im trying to create a library, but some methods will only work for API > 21.
How can I set the minimum api target for this method and show a warning?
like the TextureView for example:
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public CustomTextureView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
init(attrs);
}