本文整理了Java中android.widget.ImageView.clearColorFilter()
方法的一些代码示例,展示了ImageView.clearColorFilter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.clearColorFilter()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:clearColorFilter
暂无
代码示例来源:origin: mancj/MaterialSearchBar
private void setupMenuIconTint() {
if (menuIconTintEnabled) {
menuIcon.setColorFilter(menuIconTint, PorterDuff.Mode.SRC_IN);
} else {
menuIcon.clearColorFilter();
}
}
代码示例来源:origin: mancj/MaterialSearchBar
private void setupNavIconTint() {
if (navIconTintEnabled) {
navIcon.setColorFilter(navIconTint, PorterDuff.Mode.SRC_IN);
} else {
navIcon.clearColorFilter();
}
}
代码示例来源:origin: mancj/MaterialSearchBar
private void setupClearIconTint() {
if (clearIconTintEnabled) {
clearIcon.setColorFilter(clearIconTint, PorterDuff.Mode.SRC_IN);
} else {
clearIcon.clearColorFilter();
}
}
代码示例来源:origin: mancj/MaterialSearchBar
private void setupSearchIconTint() {
if (searchIconTintEnabled) {
searchIcon.setColorFilter(searchIconTint, PorterDuff.Mode.SRC_IN);
} else {
searchIcon.clearColorFilter();
}
}
代码示例来源:origin: mancj/MaterialSearchBar
private void setupArrowIconTint() {
if (arrowIconTintEnabled) {
arrowIcon.setColorFilter(arrowIconTint, PorterDuff.Mode.SRC_IN);
} else {
arrowIcon.clearColorFilter();
}
}
代码示例来源:origin: DaxiaK/MyDiary
private void clearUiPassword() {
passwordPointer = 0;
passwordStrBuilder = new StringBuilder();
IV_password_number_1.setImageResource(R.drawable.ic_password_no_text_48dp);
IV_password_number_2.setImageResource(R.drawable.ic_password_no_text_48dp);
IV_password_number_3.setImageResource(R.drawable.ic_password_no_text_48dp);
IV_password_number_4.setImageResource(R.drawable.ic_password_no_text_48dp);
IV_password_number_1.clearColorFilter();
IV_password_number_2.clearColorFilter();
IV_password_number_3.clearColorFilter();
IV_password_number_4.clearColorFilter();
}
代码示例来源:origin: DaxiaK/MyDiary
private void removePasswordStr() {
if (passwordPointer > 0) {
passwordStrBuilder.setLength(passwordStrBuilder.length() - 1);
switch (passwordPointer) {
case 1:
IV_password_number_1.setImageResource(R.drawable.ic_password_no_text_48dp);
IV_password_number_1.clearColorFilter();
break;
case 2:
IV_password_number_2.setImageResource(R.drawable.ic_password_no_text_48dp);
IV_password_number_2.clearColorFilter();
break;
case 3:
IV_password_number_3.setImageResource(R.drawable.ic_password_no_text_48dp);
IV_password_number_3.clearColorFilter();
break;
}
passwordPointer--;
}
}
代码示例来源:origin: westnordost/StreetComplete
private void updateSelectionStatus()
{
if(!item.visible)
{
iconView.setColorFilter(itemView.getResources().getColor(R.color.greyed_out));
}
else
{
iconView.clearColorFilter();
}
textView.setEnabled(item.visible);
}
代码示例来源:origin: Meiqia/MeiqiaSDK-Android
private void hideVoiceSelectIndicator() {
mVoiceSelectIndicator.setVisibility(View.GONE);
mVoiceSelectImg.setImageResource(R.drawable.mq_ic_mic_normal);
mVoiceSelectImg.clearColorFilter();
}
代码示例来源:origin: Meiqia/MeiqiaSDK-Android
private void hideEmojiSelectIndicator() {
mEmojiSelectIndicator.setVisibility(View.GONE);
mEmojiSelectImg.setImageResource(R.drawable.mq_ic_emoji_normal);
mEmojiSelectImg.clearColorFilter();
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
@Override
public void onAnimationEnd(Animator animation) {
target.clearColorFilter();
target.setHasTransientState(false);
}
});
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
imageView.clearColorFilter();
imageView.setHasTransientState(false);
}
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
@Override
public boolean onResourceReady(Bitmap resource, Object model, Target<Bitmap> target,
DataSource dataSource, boolean isFirstResource) {
if (!albumItem.hasFadedIn) {
fadeIn();
} else {
imageView.clearColorFilter();
}
return false;
}
})
代码示例来源:origin: HuanTanSheng/EasyPhotos
private void toggleIvMenu(@IdRes int resId) {
for (ImageView ivMenu : ivMenus) {
if (ivMenu.getId() == resId) {
ivMenu.setColorFilter(ContextCompat.getColor(this, R.color.easy_photos_fg_accent));
} else {
ivMenu.clearColorFilter();
}
}
}
代码示例来源:origin: tomahawk-player/tomahawk-android
@Override
public void loadIconBackground(ImageView imageView, boolean grayOut) {
imageView.setImageDrawable(new ColorDrawable(
TomahawkApp.getContext().getResources()
.getColor(R.color.local_collection_resolver_bg)));
if (grayOut) {
imageView.setColorFilter(ColorTintTransformation.getColorFilter(
R.color.disabled_resolver));
} else {
imageView.clearColorFilter();
}
}
代码示例来源:origin: tomahawk-player/tomahawk-android
@Override
public void loadIconBackground(ImageView imageView, boolean grayOut) {
imageView.setImageDrawable(new ColorDrawable(
TomahawkApp.getContext().getResources().getColor(R.color.hatchet_resolver_bg)));
if (grayOut) {
imageView.setColorFilter(ColorTintTransformation.getColorFilter(
R.color.disabled_resolver));
} else {
imageView.clearColorFilter();
}
}
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
@Override
public void onAnimationPause(Animator animation) {
super.onAnimationPause(animation);
imageView.clearColorFilter();
imageView.setHasTransientState(false);
}
});
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
@Override
public void onAnimationCancel(Animator animation) {
super.onAnimationCancel(animation);
imageView.clearColorFilter();
imageView.setHasTransientState(false);
}
代码示例来源:origin: kollerlukas/Camera-Roll-Android-App
@Override
public boolean onResourceReady(GifDrawable resource, Object model, Target<GifDrawable> target,
DataSource dataSource, boolean isFirstResource) {
if (!albumItem.hasFadedIn) {
fadeIn();
} else {
imageView.clearColorFilter();
}
resource.start();
return false;
}
})
代码示例来源:origin: xuancao/DynamicSkin
private void upDateTab(FragmentTabHost mTabHost) {
for (int i = 0; i < mTabHost.getTabWidget().getChildCount(); i++) {
ImageView imageView = mTabHost.getTabWidget().getChildAt(i).findViewById(R.id.imageview);
if (mTabHost.getCurrentTab() == i) {//选中
imageView.setColorFilter(Config.getPrimaryColor() == 0 ? getResources().getColor(R.color.global_color) : Config.getPrimaryColor());
} else {//不选中
imageView.clearColorFilter();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!