本文整理汇总了Java中android.widget.ImageView.bringToFront方法的典型用法代码示例。如果您正苦于以下问题:Java ImageView.bringToFront方法的具体用法?Java ImageView.bringToFront怎么用?Java ImageView.bringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.widget.ImageView
的用法示例。
在下文中一共展示了ImageView.bringToFront方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setRoundCornerDefault
import android.widget.ImageView; //导入方法依赖的package包/类
/**
* Set the default image for this thread in the action bar.
* */
protected void setRoundCornerDefault(CircleImageView circleImageView, ImageView roundedCornerImageView, View.OnClickListener onClickListener){
circleImageView.setVisibility(View.INVISIBLE);
roundedCornerImageView.setVisibility(View.INVISIBLE);
if (thread.getTypeSafely() == BThread.Type.Public)
roundedCornerImageView.setImageResource(R.drawable.ic_users);
else if (thread.getUsers().size() < 3)
roundedCornerImageView.setImageResource(R.drawable.ic_profile);
else
roundedCornerImageView.setImageResource(R.drawable.ic_users);
roundedCornerImageView.setVisibility(View.VISIBLE);
roundedCornerImageView.bringToFront();
roundedCornerImageView.setOnClickListener(onClickListener);
}
示例2: MakeThreadImage
import android.widget.ImageView; //导入方法依赖的package包/类
public MakeThreadImage(String[] urls, int width, int height, String cacheKey, ImageView image) {
this.width = width;
this.height = height;
this.cacheKey = cacheKey;
this.image = image;
urlsLength= urls.length;
// Loading from cache
if (VolleyUtils.getBitmapCache().contains(getCacheKey(cacheKey, urlsLength)))
{
image.setImageBitmap(VolleyUtils.getBitmapCache().getBitmap(getCacheKey(cacheKey, urlsLength)));
image.setVisibility(View.VISIBLE);
image.bringToFront();
}
// Creating an image.
else
{
loadBitmapsForThreadImage = new WeakReference<LoadBitmapsForThreadImage>(new LoadBitmapsForThreadImage(urls));
loadBitmapsForThreadImage.get().run();
}
}
示例3: onShutter
import android.widget.ImageView; //导入方法依赖的package包/类
public void onShutter() {
ImageView blinkRect = (ImageView) findViewById(R.id.blink_rectangle);
blinkRect.setVisibility(View.VISIBLE);
blinkRect.bringToFront();
blinkRect.invalidate();
}
示例4: setClickable
import android.widget.ImageView; //导入方法依赖的package包/类
private void setClickable(ImageView view) {
view.bringToFront();
view.setClickable(true);
}