@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) public Drawable[] getCompoundDrawablesRelative (){ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) return mInputView.getCompoundDrawablesRelative(); return mInputView.getCompoundDrawables(); }
/** * <b>Note, that on pre {@link android.os.Build.VERSION_CODES#LOLLIPOP LOLLIPOP} Android versions * this method will return array containing instances of {@link TintDrawable TintDrawable} (if any) * if compound drawable tint has been applied via {@link #setCompoundDrawableTintList(ColorStateList)}.</b> * <p> * The original wrapped drawables can be obtained via {@link TintDrawable#getDrawable()}. */ @NonNull @Override public Drawable[] getCompoundDrawablesRelative() { return super.getCompoundDrawablesRelative(); }
/** * <b>Note, that on pre {@link android.os.Build.VERSION_CODES#LOLLIPOP LOLLIPOP} Android versions * this method will return array containing instances of {@link TintDrawable TintDrawable} (if any) * if compound drawable tint has been applied via {@link #setCompoundDrawableTintList(ColorStateList)}.</b> * <p> * The original wrapped drawables can be obtained via {@link TintDrawable#getDrawable()}. */ @NonNull @Override public Drawable[] getCompoundDrawablesRelative() { return super.getCompoundDrawablesRelative(); }
/** * <b>Note, that on pre {@link android.os.Build.VERSION_CODES#LOLLIPOP LOLLIPOP} Android versions * this method will return array containing instances of {@link TintDrawable TintDrawable} (if any) * if compound drawable tint has been applied via {@link #setCompoundDrawableTintList(ColorStateList)}.</b> * <p> * The original wrapped drawables can be obtained via {@link TintDrawable#getDrawable()}. */ @NonNull @Override public Drawable[] getCompoundDrawablesRelative() { return super.getCompoundDrawablesRelative(); }
super.onProcessTypedValues(context, typedArray); final Drawable[] compoundDrawables = RELATIVE_COMPOUND_DRAWABLES_SUPPORTED ? mWidget.getCompoundDrawablesRelative() : mWidget.getCompoundDrawables(); boolean compoundDrawablesChanged = false;
super.onProcessTypedValues(context, typedArray); final Drawable[] compoundDrawables = RELATIVE_COMPOUND_DRAWABLES_SUPPORTED ? mWidget.getCompoundDrawablesRelative() : mWidget.getCompoundDrawables(); boolean compoundDrawablesChanged = false;
super.onProcessTypedValues(context, typedArray); final Drawable[] compoundDrawables = RELATIVE_COMPOUND_DRAWABLES_SUPPORTED ? mWidget.getCompoundDrawablesRelative() : mWidget.getCompoundDrawables(); boolean compoundDrawablesChanged = false;