Open SUBINPTPM opened 5 years ago
My Code: #kotlin
galleryView = ScrollGalleryView .from(findViewById(com.sqt.ifb_remote.R.id.scroll_gallery_view)) .settings( GallerySettings .from(supportFragmentManager) .thumbnailSize(100) .enableZoom(true) .build() ) .add(infos) .build()
and get error as Attempt to invoke virtual method 'com.veinhorn.scrollgalleryview.ScrollGalleryView com.veinhorn.scrollgalleryview.ScrollGalleryView.setThumbnailSize(int)' on a null object reference
Attempt to invoke virtual method 'com.veinhorn.scrollgalleryview.ScrollGalleryView com.veinhorn.scrollgalleryview.ScrollGalleryView.setThumbnailSize(int)' on a null object reference
My Code: #kotlin
galleryView = ScrollGalleryView .from(findViewById(com.sqt.ifb_remote.R.id.scroll_gallery_view)) .settings( GallerySettings .from(supportFragmentManager) .thumbnailSize(100) .enableZoom(true) .build() ) .add(infos) .build()
and get error as
Attempt to invoke virtual method 'com.veinhorn.scrollgalleryview.ScrollGalleryView com.veinhorn.scrollgalleryview.ScrollGalleryView.setThumbnailSize(int)' on a null object reference