# SDKVidioView rendering with layout\_marginStart and End with -2147483648

**URL:** <https://devforum.zoom.us/t/sdkvidioview-rendering-with-layout-marginstart-and-end-with-2147483648/56450>\
**Category:** Android\
**Created:** [August 25, 2021, 9:46pm UTC](https://devforum.zoom.us/t/sdkvidioview-rendering-with-layout-marginstart-and-end-with-2147483648/56450 "2021-08-25T21:46:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott-med-home](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@scott-med-home](https://devforum.zoom.us/u/scott-med-home)\
**Post date:** [August 25, 2021, 9:46pm UTC](https://devforum.zoom.us/t/sdkvidioview-rendering-with-layout-marginstart-and-end-with-2147483648/56450/1 "2021-08-25T21:46:08Z")

</div>

**Description**  
I have 2 devices running the same code.

_Device 1:_  
Galaxy Tab S5e  
Android 11  
Security Patch level: May 1, 2021  
Memory: 4GB

_Device 2:_  
Mason G450A1  
Android 7.1.2  
Memory: 2GB  
Security Patch level: October 1, 2019  
Size: 10.1 inch  
Resolution: FHD(1920x1200)  
Aspect Ratio: 16:10  
Chipset: Qualcomm Snapdragon 450

_layout_

```
<us.zoom.sdk.MobileRTCVideoView
    android:id="@+id/mcrnVideoView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_marginStart="0dp"
    android:layout_marginEnd="0dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<us.zoom.sdk.MobileRTCVideoView
    android:id="@+id/selfVideoView"
    android:layout_width="195dp"
    android:layout_height="240dp"
    android:layout_marginEnd="8dp"
    android:layout_marginTop="8dp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    />

```

_Issue:_  
Everything is working fine on the Galaxy (device 1) without issue. I’m evaluating the Mason (device 2).

The issue is that on Mason device (looking at the Layout Inspector).  
I see the MobileRTCVideoView is showing the correct properties, layout\_marginStart: 0, layout\_marginEnd: 0 but the RelativeLayout below the RTCVideoView (and its videoContainer -SDKVideoView) are rendering with layout\_marginStart of -2147483648 and a layout\_marginEnd with the same number.

I’m wondering if anyone has seen this on older versions of Android?

**Which Android Video SDK version?**  
5.5.1.1319

---

<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:** [August 26, 2021, 8:51pm UTC](https://devforum.zoom.us/t/sdkvidioview-rendering-with-layout-marginstart-and-end-with-2147483648/56450/2 "2021-08-26T20:51:00Z")

</div>

Hi @scott-med-home, thanks for using our SDK.

Please note that I have moved this post over to the #mobile-meeting-sdk:android category. 🙂

Sorry to hear you’re running into this issue. This certainly seems bizarre and is not something I’ve seen reported before. Just to rule out the possibility of an issue with the device, is this behavior reproducible if you remove the `MobileRTCVideoView` elements and replace them with `RelativeLayout` elements?

Thanks!

---

<div class="post-metadata">

**Author:** ![scott-med-home](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@scott-med-home](https://devforum.zoom.us/u/scott-med-home)\
**Post date:** [August 27, 2021, 5:49pm UTC](https://devforum.zoom.us/t/sdkvidioview-rendering-with-layout-marginstart-and-end-with-2147483648/56450/3 "2021-08-27T17:49:23Z")

</div>

Jon:

after playing around with different layouts, there seems to be an issue with the ContraintLayout that gets generated by the PopupWindow. here is what I see in the Layout Inspector:

.\> PopupWindow$PopupDecorView

=\> ConstraintLayout  
layout\_marginStart: -2147483648,  
layout\_marginEnd: -2147483648,

==\> RelativeLayout (the Inspector showed the same layout if using ContraintLayout)  
layout\_marginStart: -2147483648,  
layout\_marginEnd: -2147483648,

**===\> RelativeLayout: \*\*  
\*\* layout\_marginStart: odp, \*\*  
\*\* layout\_marginEnd: 200dp, \*\*  
\*\* background: red**

**Note: this layout show’s up correctly with the red background**

\*\*====\> selfVideoView (MobileRTCVideoVIew) \*\*  
\*\* layout\_marginStart: odp, \*\*  
\*\* layout\_marginEnd: 200dp, \*\*  
**Note: this layout show’s up correctly but it’s transparent down to the**

=====\> RelativeLayout  
layout\_marginStart: -2147483648,  
layout\_marginEnd: -2147483648,

======\> videoContainer: (SDKVideoView)  
layout\_marginStart: -2147483648,  
layout\_marginEnd: -2147483648,

So for some reason the ConstraintLayout under the PopupDecorView seems to have an issue.  
But it’s strange how the RelativeLayout and the SelfVideoView seem to not be affected by it.

The RelativeLayout and the VideoContainer both seem to get messed up.

I’m going to create a basic App and see if I see the say issue with the PopupDecorView ConstraintLayout.

---

<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:** [August 27, 2021, 10:16pm UTC](https://devforum.zoom.us/t/sdkvidioview-rendering-with-layout-marginstart-and-end-with-2147483648/56450/4 "2021-08-27T22:16:57Z")

</div>

Hi @scott-med-home,

Thanks for the additional information. Creating a demo app for this issue seems like a great next step. If this is identified as an SDK issue, that will make it much easier for us to identify the exact cause. 🙂

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:** [September 27, 2021, 8:17am UTC](https://devforum.zoom.us/t/sdkvidioview-rendering-with-layout-marginstart-and-end-with-2147483648/56450/5 "2021-09-27T08:17:15Z")

</div>

Closed on September 27, 2021, 8:17am UTC

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