I have a layout (named mirroring.xml) and I need to use it in two different activities. First activity, needs the content to be displayed based on the full length and width of the android mobile. The second activity uses layout to show only half the screen. And to achieve this, I am using a bottomSheetDialog and BottomSheetFragment. But since I use same layout for both the full and half view, the full screen view works fine, but the half screen view, cut's off some of the views, and the alignment of the views are not proper. Do I need to use a separate layout in this case for the half screen view using the bottomSheetDialog ?
Asked
Active
Viewed 170 times
0

Angus
- 12,133
- 29
- 96
- 151
-
In both case display content is same or diffrenet ? – Arbaz.in Sep 29 '20 at 06:13
-
@Arbaz.in : In both the cast the display content is the same. – Angus Sep 29 '20 at 06:42
-
Did you try with NestedScrollView ? if not then try this [link](https://stackoverflow.com/a/41680628/5995648) – Arbaz.in Sep 29 '20 at 06:46