The image shows overlapping items that have been added to a StackView in a Xamarin Android app. How do I get them to display without over lapping?
The StackView element
<StackView
android:id="@+id/stackViewMaterials"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</StackView>
The code that loads the StackView.
if (Arguments != null)
{
quote = JsonConvert.DeserializeObject<Quote>(Arguments.GetString("quote"));
if (Arguments.GetString("work") != null)
{
work = JsonConvert.DeserializeObject<Work>(Arguments.GetString("work"));
v.FindViewById<EditText>(Resource.Id.editDescription).Text = work.strDescription;
if (work.Materials.Count > 0)
{
StackView stackMaterials = v.FindViewById<StackView>(Resource.Id.stackViewMaterials);
stackMaterials.Adapter = new MaterialAdapter(v.Context, work.Materials);
stackMaterials.ItemClick += OnListClick;
}
v.FindViewById<EditText>(Resource.Id.editWaste).Text = work.dblWaste.ToString();
v.FindViewById<EditText>(Resource.Id.editDelivery).Text = work.dblDelivery.ToString();
v.FindViewById<EditText>(Resource.Id.editLabour).Text = work.dblLabour.ToString();
v.FindViewById<EditText>(Resource.Id.editComment).Text = work.strComment;
}
}