こんにちは私は2つのボタン、ラジオボタンとグラフビューを含むRelativeLayoutを作成しました。RelativeLayoutを2つの半分に分割する
グラフに2つの異なるデータを表示したいと思います。
どのようにRelativeLayoutを2つに分割するのですか?
これは私の現在のXMLコードです:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:id="@+id/BtnStart"
android:layout_width="100dip"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="5dip"
android:text="SlaveEnable" />
<Button
android:id="@+id/BtnStop"
android:layout_width="100dip"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="5dip"
android:layout_toRightOf="@id/BtnStart"
android:text="SlaveDisable" />
<RadioButton
android:id="@+id/BtnSaveFile"
android:layout_width="100dip"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_toRightOf="@id/BtnStop"
android:text="SaveFile" />
<helog.diwesh.NugaBest.GraphView
android:id="@+id/gview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/BtnStart"
android:layout_alignParentRight="true" />
</RelativeLayout>
私はここで質問しませんでしたか?正確に何をしたいですか?あなたは画面に2つのグラフを追加したいのですか?どちらも同じスペースを占有していますか?または希望のレイアウトを示すサンプル図面をアップロードすることができます。 – Sagar
はい私の現在のレイアウトは、ECG信号を波形表示したグラフビューを持つ相対レイアウトです。私は今このグラフを半分に分割し、残りの半分は呼吸の信号を示したいと思います。同じ場所にあるはずの底に3つのボタンがあります –