其他分享
首页 > 其他分享> > android – 如何从钛库中选择多个图像?

android – 如何从钛库中选择多个图像?

作者:互联网

这里我有从库中选择图像的代码,但是如何从库中选择多个图像?

Ti.Media.openPhotoGallery({
    // allowEditing:true,
    mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
    success : function(e) {
        alert(e);
        ImageView.image = e.media;
        //alert('height:'+e.media.height+'width:'+e.media.height);
        lblWidth.text = 'W :'+e.media.width;
        lblHeight.text ='H :' +e.media.height;
    },
    cancel : function() {
    },
    error : function(err) {
    }
});

解决方法:

在这里,我找到了android的模块

Link 用于市场(多图像选择器),Link 用于github(TiMultiImagePicker)上的源代码.
这是iOS模块的Link.

标签:android,ios,titanium,titanium-modules
来源: https://codeday.me/bug/20190528/1173818.html