当前位置: 首页>>代码示例>>Java>>正文


Java PickImageHelper.PickImageOption方法代码示例

本文整理汇总了Java中com.netease.nim.uikit.common.media.picker.PickImageHelper.PickImageOption方法的典型用法代码示例。如果您正苦于以下问题:Java PickImageHelper.PickImageOption方法的具体用法?Java PickImageHelper.PickImageOption怎么用?Java PickImageHelper.PickImageOption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.netease.nim.uikit.common.media.picker.PickImageHelper的用法示例。


在下文中一共展示了PickImageHelper.PickImageOption方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onClick

import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
    switch (v.getId()) {
        case R.id.head_layout:
            PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
            option.titleResId = R.string.set_head_image;
            option.crop = true;
            option.multiSelect = false;
            option.cropOutputImageWidth = 720;
            option.cropOutputImageHeight = 720;
            PickImageHelper.pickImage(UserProfileSettingActivity.this, PICK_AVATAR_REQUEST, option);
            break;
        case R.id.nick_layout:
            UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_NICKNAME,
                    nickText.getText().toString());
            break;
        case R.id.gender_layout:
            UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_GENDER,
                    String.valueOf(userInfo.getGenderEnum().getValue()));
            break;
        case R.id.birth_layout:
            UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_BIRTH,
                    birthText.getText().toString());
            break;
        case R.id.phone_layout:
            UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_PHONE,
                    phoneText.getText().toString());
            break;
        case R.id.email_layout:
            UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_EMAIL,
                    emailText.getText().toString());
            break;
        case R.id.signature_layout:
            UserProfileEditItemActivity.startActivity(UserProfileSettingActivity.this, UserConstant.KEY_SIGNATURE,
                    signatureText.getText().toString());
            break;
    }
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:39,代码来源:UserProfileSettingActivity.java

示例2: pickPicture

import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入方法依赖的package包/类
public void pickPicture(IJavaReplyToJsImageInfo cb) {
    this.pickPictureCallback = cb;
    PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
    option.titleResId = R.string.set_head_image;
    option.crop = true;
    option.multiSelect = false;
    option.cropOutputImageWidth = 720;
    option.cropOutputImageHeight = 720;
    PickImageHelper.pickImage(JsBridgeActivity.this, IMAGE_PICKER_REQUEST_ID, option);
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:11,代码来源:JsBridgeActivity.java

示例3: showSelector

import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入方法依赖的package包/类
/**
 * 打开图片选择器
 */
private void showSelector(int titleId, final int requestCode) {
    PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
    option.titleResId = titleId;
    option.multiSelect = false;
    option.crop = true;
    option.cropOutputImageWidth = 720;
    option.cropOutputImageHeight = 720;

    PickImageHelper.pickImage(AdvancedTeamInfoActivity.this, requestCode, option);
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:14,代码来源:AdvancedTeamInfoActivity.java

示例4: showSelector

import com.netease.nim.uikit.common.media.picker.PickImageHelper; //导入方法依赖的package包/类
/**
 * 打开图片选择器
 */
private void showSelector(int titleId, final int requestCode, final boolean multiSelect, final String outPath) {
    PickImageHelper.PickImageOption option = new PickImageHelper.PickImageOption();
    option.titleResId = titleId;
    option.multiSelect = multiSelect;
    option.multiSelectMaxCount = PICK_IMAGE_COUNT;
    option.crop = crop;
    option.cropOutputImageWidth = PORTRAIT_IMAGE_WIDTH;
    option.cropOutputImageHeight = PORTRAIT_IMAGE_WIDTH;
    option.outputPath = outPath;

    PickImageHelper.pickImage(getActivity(), requestCode, option);
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:16,代码来源:PickImageAction.java


注:本文中的com.netease.nim.uikit.common.media.picker.PickImageHelper.PickImageOption方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。