I am trying to dynamically set the ImageView height in Xamarin droid project not in core.
LinearLayout layout4 = new LinearLayout(Activity);
layout4.LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.WrapContent);
layout4.SetGravity(GravityFlags.Center);
layout4.Orientation = Orientation.Vertical;
I am not able to set:
layout4.Height = 20;
Getting error: Property or indexer cannot be assigned, it is read only