# Layout Switch Action

**URL:** <https://devforum.zoom.us/t/layout-switch-action/206>\
**Category:** Android\
**Tags:** htq, dc\
**Created:** [April 18, 2017, 2:22pm UTC](https://devforum.zoom.us/t/layout-switch-action/206 "2017-04-18T14:22:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meir\_Schreiber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/meir_schreiber/32/9638_2.png) [@Meir\_Schreiber](https://devforum.zoom.us/u/Meir_Schreiber)\
**Post date:** [April 18, 2017, 2:22pm UTC](https://devforum.zoom.us/t/layout-switch-action/206/1 "2017-04-18T14:22:06Z")

</div>

I would like to implement a button that switches between the spotlight view and the participants grid view (instead of swiping left and right)

Is there a method I can call in MeetingActivity that does this switch?

&nbsp;

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [April 18, 2017, 5:58pm UTC](https://devforum.zoom.us/t/layout-switch-action/206/2 "2017-04-18T17:58:42Z")

</div>

Hi Meir,

please take a look at MeetingSettingHelper class, there are some API calls you can utilize:

1.&nbsp;setSwitchVideoLayoutAccordingToUserCountEnabled(boolean enabled)

&nbsp; &nbsp; Enable/disable to automatically to switch video layout mode between active video and gallery view based on count of users.

2.&nbsp;setSwitchVideoLayoutUserCountThreshold(int value)

&nbsp; &nbsp; Set the user count threshold value used to automatically switch video layout.

Best

---

<div class="post-metadata">

**Author:** ![Meir\_Schreiber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/meir_schreiber/32/9638_2.png) [@Meir\_Schreiber](https://devforum.zoom.us/u/Meir_Schreiber)\
**Post date:** [April 19, 2017, 9:11am UTC](https://devforum.zoom.us/t/layout-switch-action/206/3 "2017-04-19T09:11:47Z")

</div>

Will this work while the user has already joined&nbsp; the meeting or is it something that can be defined only before you join?

---

<div class="post-metadata">

**Author:** ![Wei\_Guo1](https://avatars.discourse-cdn.com/v4/letter/w/ec9cab/32.png) [@Wei\_Guo1](https://devforum.zoom.us/u/Wei_Guo1)\
**Post date:** [April 19, 2017, 4:27pm UTC](https://devforum.zoom.us/t/layout-switch-action/206/4 "2017-04-19T16:27:03Z")

</div>

Hi Meir,

this works before user join the meeting. For in meeting, currently we support swipe.&nbsp;

Best

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:10pm UTC](https://devforum.zoom.us/t/layout-switch-action/206/5 "2020-08-21T17:10:42Z")

</div>

Closed on August 21, 2020, 5:10pm UTC


