public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); // header var listView = view.FindViewById <ListView>(Resource.Id.listview); StickyHeaderBuilder .StickTo(listView) .SetHeader(Resource.Id.header, (ViewGroup)View) .SetMinHeightDimension(Resource.Dimension.min_height_header) .SetAnimator(() => { var image = View.FindViewById(Resource.Id.header_image); return(AnimatorBuilder .Create() .ApplyVerticalParallax(image)); }) .Apply(); // items var elements = new string[500]; for (int i = 0; i < elements.Length; i++) { elements[i] = "row " + i; } listView.Adapter = new ArrayAdapter <string>(Activity, Android.Resource.Layout.SimpleListItem1, elements); }
public override AnimatorBuilder CreateAnimatorBuilder() { View image = Header.FindViewById(Resource.Id.header_image); return(AnimatorBuilder.Create().ApplyVerticalParallax(image, 0.5f)); }