Advanced UITableView in MvvmCross + Xamarin

A

I once supposed to implement a view like below

It was fairly easy to implement it for Android. Regular 3x MvxRecyclerView + Label on top of each all wrapped in a ScrollView did the thing.

  <ScrollView
        android:id="@+id/dayproject_list"
        android:orientation="vertical"
        android:paddingTop="?attr/actionBarSize"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:overScrollMode="always">
      <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <TextView
          android:id="@+id/dayProject_registrationsLabel"
          android:textStyle="bold"          
          android:textSize="15sp"
          android:padding="10dp"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" />
        <MvvmCross.Droid.Support.V7.RecyclerView.MvxRecyclerView
          android:id="@+id/dayProject_registrationsList"
          android:scrollbars="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:minHeight="150dp"
          android:nestedScrollingEnabled="false"
          app:MvxItemTemplate="@layout/listitem"
          app:MvxBind="ItemsSource Registrations" />
        <TextView
          android:id="@+id/dayProject_costsLabel"
          android:textStyle="bold"
          android:textSize="15sp"
          android:padding="10dp"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" />
        <MvvmCross.Droid.Support.V7.RecyclerView.MvxRecyclerView
          android:id="@+id/dayProject_costsList"
          android:scrollbars="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:minHeight="150dp"
          android:nestedScrollingEnabled="false"
          app:MvxItemTemplate="@layout/listitem"
          app:MvxBind="ItemsSource Costs" />
        <TextView
          android:id="@+id/dayProject_picturesLabel"
          android:textStyle="bold"
          android:textSize="15sp"
          android:padding="10dp"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" />
        <MvvmCross.Droid.Support.V7.RecyclerView.MvxRecyclerView
          android:id="@+id/dayProject_picturesList"
          android:scrollbars="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:minHeight="450dp"
          android:nestedScrollingEnabled="false"
          app:MvxItemTemplate="@layout/pictureitem"
          app:MvxBind="ItemsSource Pictures" />
      </LinearLayout>
    </ScrollView>

About the author

Add comment

By FP

Recent Posts

Tags