# Zoom MeetingActivity Custom XML layout breaking

**URL:** <https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071>\
**Category:** Android\
**Created:** [December 23, 2020, 11:06am UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071 "2020-12-23T11:06:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenny.gadhavi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenny.gadhavi/32/18947_2.png) [@jenny.gadhavi](https://devforum.zoom.us/u/jenny.gadhavi)\
**Post date:** [December 23, 2020, 11:06am UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/1 "2020-12-23T11:06:03Z")

</div>

Hello,

I am using the custom XML file for MeetingActivity, my XML code is like below

\<?xml version="1.0" encoding="utf-8"?\>

```
<!-- Custom background view -->
<ImageView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:scaleType="centerCrop"
    android:src="@drawable/zoom_background" />

<!-- this is for round corner for outside zoom layout-->
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="@dimen/_20dp"
    android:background="@drawable/ic_screen_round_bcak"
    android:backgroundTint="@color/black" />

<!-- Zoom layout -->
<include
    android:id="@+id/meetingContent"
    layout="@layout/zm_conf_main_screen"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="26dp" />

```

Please check the below screenshots, For all screens and dialog boxes design is fine and not breaking except for the “showLeaveDialog()”

 ![WhatsApp Image 2020-12-23 at 4.29.54 PM (2)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/9/396023e63ef9ea54f62757b7cbf9dc88f70bd134.jpeg) ![WhatsApp Image 2020-12-23 at 4.29.54 PM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/5/553a2c442d1780d8e09ee7c4bfbcf70303afbbe3.jpeg) ![WhatsApp Image 2020-12-23 at 4.29.54 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/2/32a40021f2251ecafc609bb7c0fbfe5eda1382e8.jpeg)

---

<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:** [December 23, 2020, 7:24pm UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/3 "2020-12-23T19:24:49Z")

</div>

Hi @jenny.gadhavi, thanks for the post.

We will need to investigate this behavior and get back to you. I’ll be sure to let you know as soon as we have an update.

Thanks!

---

<div class="post-metadata">

**Author:** ![jenny.gadhavi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenny.gadhavi/32/18947_2.png) [@jenny.gadhavi](https://devforum.zoom.us/u/jenny.gadhavi)\
**Post date:** [January 6, 2021, 8:36am UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/4 "2021-01-06T08:36:45Z")

</div>

Any update on this? it really is urgent, it would be great if you could help me with this.

---

<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:** [January 6, 2021, 6:38pm UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/5 "2021-01-06T18:38:29Z")

</div>

Hi @jenny.gadhavi,

I am not aware of any updates as of yet.

That being said, our latest SDK release did contain some UI updates. It could be worth verifying whether or not this was incidentally fixed in this version.

Thanks!

---

<div class="post-metadata">

**Author:** ![jenny.gadhavi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenny.gadhavi/32/18947_2.png) [@jenny.gadhavi](https://devforum.zoom.us/u/jenny.gadhavi)\
**Post date:** [January 7, 2021, 3:57am UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/6 "2021-01-07T03:57:18Z")

</div>

Hello,

We are using the latest SDK version only.  
Android Client SDK Version :v5.2.42043.1112

Please let me know if we are missing anything .

---

<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:** [January 7, 2021, 5:45pm UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/7 "2021-01-07T17:45:48Z")

</div>

Hi @jenny.gadhavi,

The latest version of the SDK is v5.4.3.603. Please note that for this version and all future versions of the SDK, you will be required to log into your developer account on the Marketplace and download it from there. Our SDK [repository](https://github.com/zoom/zoom-sdk-android) now includes instructions on this new method of retrieving the SDK package.

Thanks!

---

<div class="post-metadata">

**Author:** ![jenny.gadhavi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenny.gadhavi/32/18947_2.png) [@jenny.gadhavi](https://devforum.zoom.us/u/jenny.gadhavi)\
**Post date:** [January 8, 2021, 12:43pm UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/8 "2021-01-08T12:43:21Z")

</div>

I update the SDK version. after doing that I am not getting any callback in “onZoomSDKInitializeResult”.

Following is how I am doing.

```
public static void initializeSdk(Context context, ZoomSDKInitializeListener listener) {
    final ZoomSDK sdk = ZoomSDK.getInstance();

    // TODO: Do not use hard-coded values for your key/secret in your app in production!
    ZoomSDKInitParams params = new ZoomSDKInitParams();
    params.appKey = ""; // TODO: Retrieve your SDK key and enter it here
    params.appSecret = ""; // TODO: Retrieve your SDK secret and enter it here
    params.domain = "zoom.us";
    params.enableLog = true;
    // TODO: Add functionality to this listener (e.g. logs for debugging)

    sdk.initialize(context, listener, params);
}

```

Every flow is working with the previous SDK. Currently using this version v5.4.3.603  
Is there any other changes I need to do for this version

Following is the error I am getting after **sdk.initialize(context, listener, params);**  
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/crypto/tink/daead/AesSivKeyManager;

---

<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:** [January 8, 2021, 8:39pm UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/9 "2021-01-08T20:39:33Z")

</div>

Hi @jenny.gadhavi,

In order to resolve this issue, please add the following dependencies in your `build.gradle`:

```auto
implementation "com.google.crypto.tink:tink-android:1.5.0"
implementation "androidx.security:security-crypto:1.1.0-alpha03"

```

Thanks!

---

<div class="post-metadata">

**Author:** ![jenny.gadhavi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jenny.gadhavi/32/18947_2.png) [@jenny.gadhavi](https://devforum.zoom.us/u/jenny.gadhavi)\
**Post date:** [January 11, 2021, 10:56am UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/10 "2021-01-11T10:56:34Z")

</div>

**Getting below exception in Logs**

W/AndroidKeysetManager: keyset not found, will generate a new one  
java.io.FileNotFoundException: can’t read keyset; the pref value **androidx\_security\_crypto\_encrypted\_prefs\_key\_keyset** does not exist  
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readPref(SharedPrefKeysetReader.java:71)  
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readEncrypted(SharedPrefKeysetReader.java:89)  
at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:105)  
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.read(AndroidKeysetManager.java:311)  
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewKeyset(AndroidKeysetManager.java:287)  
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:238)  
at com.zipow.videobox.util.ZMEncryptedSharedPreferences.a(ZMEncryptedSharedPreferences.java:1167)  
at com.zipow.videobox.util.PreferenceUtil.getSharedPreferences(PreferenceUtil.java:355)  
at com.zipow.videobox.util.PreferenceUtil.readStringValue(PreferenceUtil.java:445)  
at org.webrtc.voiceengine.VoiceEngineCompat.selectAudioDeviceAPIType(VoiceEngineCompat.java:227)  
at org.webrtc.voiceengine.VoiceEngineCompat.isBluetoothScoSupported(VoiceEngineCompat.java:152)  
at com.zipow.videobox.VideoBoxApplication.onSDKCreated(VideoBoxApplication.java:2167)  
at com.zipow.videobox.VideoBoxApplication.initializeForSDK(VideoBoxApplication.java:2146)  
at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:470)  
at com.jump360.milife\_instructor.zoom.ZoomClientFactory.initializeSdk(ZoomClientFactory.java:38)  
at com.jump360.milife\_instructor.zoom.JoinMeetingActivity.callZoomInitialization(JoinMeetingActivity.java:97)  
at com.jump360.milife\_instructor.zoom.JoinMeetingActivity.onSuccess(JoinMeetingActivity.java:408)  
at com.jump360.milife\_instructor.repositories.MainApiCall$1.onNext(MainApiCall.java:464)  
at com.jump360.milife\_instructor.repositories.MainApiCall$1.onNext(MainApiCall.java:433)  
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:201)  
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)  
at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)  
at android.os.Handler.handleCallback(Handler.java:883)  
at android.os.Handler.dispatchMessage(Handler.java:100)  
at android.os.Looper.loop(Looper.java:214)  
at android.app.ActivityThread.main(ActivityThread.java:7682)  
at java.lang.reflect.Method.invoke(Native Method)  
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

**And below code is executing but nothing happening afterward**

```
    MeetingService meetingService = zoomSDK.getMeetingService();

    StartMeetingOptions options = new StartMeetingOptions();

    options.no_invite = true;
    options.participant_id = participant_id;
    options.meeting_views_options = MeetingViewsOptions.NO_TEXT_MEETING_ID
            + MeetingViewsOptions.NO_TEXT_PASSWORD;
    options.no_webinar_register_dialog = true;

    StartMeetingParamsWithoutLogin params = new StartMeetingParamsWithoutLogin();
    params.meetingNo = meetingNumber;
    params.userId = host_id;
    params.zoomAccessToken = password;
    params.displayName = display_name;

    meetingService.startMeetingWithParams(context, params, options);
```

---

<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:** [January 19, 2021, 6:57pm UTC](https://devforum.zoom.us/t/zoom-meetingactivity-custom-xml-layout-breaking/39071/11 "2021-01-19T18:57:35Z")

</div>

Hi @jenny.gadhavi,

Can you please provide the following information so that we can look into this further?

- The return value of the `startMeetingWithParams` method when this issue occurs.
- All return values from the [`onMeetingStatusChanged`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/MeetingServiceListener.html#onMeetingStatusChanged-us.zoom.sdk.MeetingStatus-int-int-) callback, in the order they occur.

Thanks!
