I want to set the view beside the radio button in the radio group. I tried but i am not getting. please can anybody help me.
Source Code
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#FFFFFF">
<RadioGroup
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:checkedButton="@+id/view_completehistroy_rb"
android:id="@+id/timeframe_group">
<!-- View complete history Radio Button -->
<RadioButton
android:text="Complete History"
android:textSize="16sp"
android:layout_marginLeft="5dp"
android:id="@+id/view_completehistroy_rb"
android:textColor="#000000"
/>
<!-- View history using date range Radio Button -->
<RadioButton
android:text="From"
android:textSize="16sp"
android:layout_marginLeft="5dp"
android:textColor="#000000"
android:id="@+id/view_daterange_history_rb"/>
</RadioGroup>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!--Layout for Time selection -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@id/view_daterange_history_rb">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:text="test1"
android:textColor="#000000"
android:textSize="16sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:text="test2"
android:textColor="#000000"
android:textSize="16sp"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>