hi there
if I create a new Android-App and
choose the template "Navigation Drawer App" and create a Fragment with a
SfSchedule inside the headers get streched
I tried two times
attacht you see a screenshot from design-mode (a bit high but could be okay) and a screenshot on my samsung s5
all I changed was:
content_main.xml => change to FrameLayout
D:\Projects\C#\_testing\momoTestCal\momoTestCal\Resources\layout\content_main.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/app_bar_main">
</FrameLayout>
created calendar_fragment.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Com.Syncfusion.Schedule.SfSchedule
android:id="@+id/calendar_schedule"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
created CalendarFragment.cs
...
SfSchedule schedule;
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View view = inflater.Inflate(Resource.Layout.calendar_fragment, container, false);
schedule = view.FindViewById<SfSchedule>(Resource.Id.calendar_schedule);
return view;
}
...
suggestions?
regards