android.widget.ImageButton.setImageURI()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(179)

本文整理了Java中android.widget.ImageButton.setImageURI()方法的一些代码示例,展示了ImageButton.setImageURI()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageButton.setImageURI()方法的具体详情如下:
包路径:android.widget.ImageButton
类名称:ImageButton
方法名:setImageURI

ImageButton.setImageURI介绍

暂无

代码示例

代码示例来源:origin: koral--/android-gif-drawable

/**
 * Sets the content of this GifImageView to the specified Uri.
 * If uri destination is not a GIF then {@link android.widget.ImageView#setImageURI(android.net.Uri)}
 * is called as fallback.
 * For supported URI schemes see: {@link android.content.ContentResolver#openAssetFileDescriptor(android.net.Uri, String)}.
 *
 * @param uri The Uri of an image
 */
@Override
public void setImageURI(Uri uri) {
  if (!GifViewUtils.setGifImageUri(this, uri)) {
    super.setImageURI(uri);
  }
}

代码示例来源:origin: com.albedinsky.android/ui

/**
 */
@Override
public void setImageURI(Uri uri) {
  super.setImageURI(uri);
  this.ensureDecorator();
  mDecorator.applyImageTint();
}

代码示例来源:origin: com.albedinsky.android/ui-widget-common

/**
 */
@Override
public void setImageURI(Uri uri) {
  super.setImageURI(uri);
  this.ensureDecorator();
  mDecorator.applyImageTint();
}

代码示例来源:origin: com.albedinsky.android/ui-widget-image

/**
 */
@Override
public void setImageURI(Uri uri) {
  super.setImageURI(uri);
  this.ensureDecorator();
  mDecorator.applyImageTint();
}

代码示例来源:origin: rajeeviiit/AndroidProject

@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == GALLERY_REQUEST && resultCode == RESULT_OK) {
      mImageUri = data.getData();
      CropImage.activity(mImageUri).setAspectRatio(1, 1).start(PostActivity.this);

      mSelectImage.setImageURI(mImageUri);
    }
  }
}

代码示例来源:origin: stackoverflow.com

Scan.setImageURI(selectedImage);// To display selected image in image view
int[] intArray = new int[bMap.getWidth() * bMap.getHeight()];
// copy pixel data from the Bitmap into the 'intArray' array

代码示例来源:origin: stackoverflow.com

}else{
  if(new File(theIssue.thumbLocation).exists()){
    coverImage.setImageURI( Uri.parse(theIssue.thumbLocation)); 
    if (coverImage.getDrawable()==null){
      coverImage.setImageResource(R.raw.default_thumbnail);

相关文章

ImageButton类方法