本文整理匯總了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);
}