If I may ask one more question:
Here is the layout for this small project:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar" />
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/main_content"
android:weightSum="3"
android:layout_below="@id/toolbar">
<FrameLayout
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="300dp" android:id="@+id/frameLayout1" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="0dp"
android:background="#000000"
android:layout_marginLeft="0dp"
android:layout_marginRight="0dp" />
<FrameLayout
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/frameLayout2" />
</LinearLayout>
</RelativeLayout>
and the relevant code:
priceChart.LayoutParameters = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
volumeChart.LayoutParameters = new
FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
FrameLayout fl1 = FindViewById<FrameLayout>(Resource.Id.frameLayout1);
FrameLayout fl2 = FindViewById<FrameLayout>(Resource.Id.frameLayout2);
fl1.AddView(priceChart);
fl2.AddView(volumeChart);
If the height for the 'priceChart' is not explicitly set, it devours the entire screen and eclipses the volume chart. This can be problematic.
Can you kindly recommend a solution?
Thanks again.