# Gallery View Show Empty Space

**URL:** <https://devforum.zoom.us/t/gallery-view-show-empty-space/63887>\
**Category:** Android\
**Created:** [February 7, 2022, 7:02am UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887 "2022-02-07T07:02:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilefire103](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nilefire103/32/30296_2.png) [@nilefire103](https://devforum.zoom.us/u/nilefire103)\
**Post date:** [February 7, 2022, 7:02am UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/1 "2022-02-07T07:02:10Z")

</div>

When I have 4 videos in gallery view, then they all consume all screen space perfectly fine, but when I have only 3 videos in gallery view then it shows empty blank space in bottom & videos height get reduced, as compared to what it was during 4 videos.

Please check the images for your reference:

 ![3_videos](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/f/4f0d2198854ed1d01a69d36147f59591f1af64f9.jpeg)

 ![4_videos](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/d/fd58d68aeecc19da22709388b15b5476629a7402.jpeg)

Now you can see here that when i have 3 videos here, their reduced & this is the issue, I want them to consume full screen space like they are consuming in 4 videos.

**Zoom Android SDK Version: zoom-sdk-android-5.9.1.3674**

**My Code**

zoomSDK.getMeetingSettingsHelper().setCustomizedMeetingUIEnabled(false);  
zoomSDK.getMeetingSettingsHelper().setSwitchVideoLayoutAccordingToUserCountEnabled(true);  
zoomSDK.getMeetingSettingsHelper().setGalleryViewCapacity(12);  
zoomSDK.getMeetingSettingsHelper().setNoUserJoinOrLeaveTipEnabled(true);  
zoomSDK.getMeetingSettingsHelper().setHideNoVideoUsersEnabled(true);  
zoomSDK.getMeetingSettingsHelper().setTurnOffMyVideoWhenJoinMeeting(true);  
zoomSDK.getMeetingSettingsHelper().setAutoConnectVoIPWhenJoinMeeting(true);  
zoomSDK.getMeetingSettingsHelper().setGalleryVideoViewDisabled(false);  
zoomSDK.getMeetingSettingsHelper().setSwitchVideoLayoutUserCountThreshold(2);  
zoomSDK.getMeetingSettingsHelper().setVideoAspectRatio(VideoAspectRatioType.ScaleToFit);

JoinMeetingOptions opts = new JoinMeetingOptions();  
opts.no\_driving\_mode = true;  
opts.no\_invite = true;  
opts.no\_meeting\_end\_message = true;  
opts.no\_meeting\_error\_message = true;  
//opts.no\_titlebar = true;  
opts.no\_bottom\_toolbar = true;  
opts.no\_dial\_in\_via\_phone = true;  
opts.no\_dial\_out\_to\_phone = true;  
//opts.no\_disconnect\_audio = true;  
opts.no\_record = true;  
opts.no\_share = true;  
opts.no\_video = true;  
opts.meeting\_views\_options = MeetingViewsOptions.NO\_BUTTON\_VIDEO + MeetingViewsOptions.NO\_BUTTON\_AUDIO +  
MeetingViewsOptions.NO\_BUTTON\_SHARE + MeetingViewsOptions.NO\_BUTTON\_PARTICIPANTS +  
MeetingViewsOptions.NO\_BUTTON\_MORE + MeetingViewsOptions.NO\_TEXT\_MEETING\_ID +  
MeetingViewsOptions.NO\_TEXT\_PASSWORD + MeetingViewsOptions.NO\_BUTTON\_SWITCH\_CAMERA +  
//MeetingViewsOptions.NO\_BUTTON\_SWITCH\_AUDIO\_SOURCE +  
MeetingViewsOptions.NO\_BUTTON\_LEAVE;  
opts.invite\_options = InviteOptions.INVITE\_DISABLE\_ALL;  
//opts.customer\_key = meetingOptions.customer\_key;  
//opts.custom\_meeting\_id = meetingOptions.custom\_meeting\_id;  
opts.no\_unmute\_confirm\_dialog = true;  
opts.no\_webinar\_register\_dialog = true;  
opts.no\_chat\_msg\_toast = true;  
//opts.no\_audio = true;

**Please let me know what i am missing here to get these 3 videos in full available space…**

---

<div class="post-metadata">

**Author:** ![nilefire103](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nilefire103/32/30296_2.png) [@nilefire103](https://devforum.zoom.us/u/nilefire103)\
**Post date:** [February 7, 2022, 7:58am UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/2 "2022-02-07T07:58:00Z")

</div>

Also with this setting:  
zoomSDK.getMeetingSettingsHelper().setVideoAspectRatio(VideoAspectRatioType.ScaleToFit);

Main video going out of boundaries…

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 7, 2022, 8:52pm UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/3 "2022-02-07T20:52:21Z")

</div>

Hi @nilefire103,

I was able to reproduce this behavior, and it does seem that the SDK is behaving differently from the Zoom client on the latest version. Since this issue is present in the default meeting UI, this is probably something that will need to be changed internally to the SDK. We’ll investigate this and let you know as soon as we have any updates.

> Also with this setting:  
> zoomSDK.getMeetingSettingsHelper().setVideoAspectRatio(VideoAspectRatioType.ScaleToFit);

> Main video going out of boundaries…

This sounds like it is working as expected. It scales the video to fit the view on your screen, which may result in parts of the video getting cut off depending on the aspect ratio of the video and dimensions of the view used by the SDK. If you do not want the video to be scaled to fit the allotted space, you can use the default `Original` value.

Thanks!

---

<div class="post-metadata">

**Author:** ![nilefire103](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nilefire103/32/30296_2.png) [@nilefire103](https://devforum.zoom.us/u/nilefire103)\
**Post date:** [February 8, 2022, 5:18am UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/4 "2022-02-08T05:18:31Z")

</div>

Is there any way that meanwhile you work on the issue to achieve this:

How I can set width & height to individual Thumbnail ? So that I will calculate the screen dimensions & based on some calculation I assign equal width & height to thumbnails in case they are 2 / 3 or 4 in quantity.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 9, 2022, 12:25am UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/5 "2022-02-09T00:25:06Z")

</div>

Hi @nilefire103,

This UI cannot be modified at that granular of a level through the SDK, so the only other option would be to implement a custom meeting UI from scratch. I would not recommend implementing a custom UI as a temporary workaround though, as it is a non-trivial amount of work which can have a profound impact on your overall implementation. We are investigating the behavior and will keep you updated.

Thanks!

---

<div class="post-metadata">

**Author:** ![nilefire103](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nilefire103/32/30296_2.png) [@nilefire103](https://devforum.zoom.us/u/nilefire103)\
**Post date:** [February 9, 2022, 12:36pm UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/6 "2022-02-09T12:36:22Z")

</div>

ok, so how much time is expected to get this issue resolved at your end ? so that i can get these thumbnails appearing fine irrespective of how many they are in quantity , 2/3/4 … ?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 9, 2022, 10:37pm UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/7 "2022-02-09T22:37:47Z")

</div>

Hi @nilefire103,

We have concluded our investigation and identified a fix for this. It should be resolved in the next release. In case you weren’t already aware, the best places to stay up-to-date with SDK releases are the #new-releases category and our [changelog](https://marketplace.zoom.us/docs/guides/stay-up-to-date/changelog/).

Thanks!

---

<div class="post-metadata">

**Author:** ![nilefire103](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nilefire103/32/30296_2.png) [@nilefire103](https://devforum.zoom.us/u/nilefire103)\
**Post date:** [February 10, 2022, 2:36am UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/8 "2022-02-10T02:36:23Z")

</div>

Ok, but I was asking that approx after how many days you will release the new sdk update that will have this fix ?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 10, 2022, 5:39pm UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/9 "2022-02-10T17:39:39Z")

</div>

Hi @nilefire103,

We typically release the Meeting SDK on a monthly cadence with releases taking place at the end of the month.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 13, 2022, 3:39am UTC](https://devforum.zoom.us/t/gallery-view-show-empty-space/63887/10 "2022-03-13T03:39:41Z")

</div>

Closed on March 13, 2022, 3:39am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
