[DO NOT MERGE] Pre-allocate height for contextual cards. am: 228bc78bf9

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12343231

Change-Id: I76c77c66be5da635571f876d9b76906f789e8472