Reputation: 135
I'm looking for a way to use the CalendarView and the FrameLayout in a ScrollView. My first idea was like this:
<ScrollView
...
<CalendarView
...
/>
<FrameLayout
...
/>
</ScrollView>
but for some reason the XML-File doesn't display the FrameLayout. However the ScrollView is very important and the reason why I use the FrameLayout is, because I'm using multiple views.
Upvotes: 0
Views: 36
Reputation: 1140
ScrollView
can have only one view as child.
<ScrollView>
<LinearLayout>
...
<CalendarView
...
/>
<FrameLayout
...
/>
</LinearLayout>
</ScrollView>`
Upvotes: 1
Reputation: 236
Try
<ScrollView>
<LinearLayout>
...
<CalendarView
...
/>
<FrameLayout
...
/>
</LinearLayout>
</ScrollView>
Also kindly note that Frame Layout wont show in design preview if width and height set as "wrap_content"
Upvotes: 1