I'm trying to make a layout first two textviews in a vertical arrangement, then text, then put a radiobutton on the most right side with linearlayout. However, even though I typed 'android:gravity="right"', it does not move and just stick there. If anyone has an idea, would you please help me? Below is my code.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TwoLineListItem android:id="@+id/twoLineListItem1" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:id="@+id/textView1"
android:text="TextView"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView android:id="@+id/textView2"
android:text="TextView"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:paddingTop="30px"/>
</TwoLineListItem>
<TextView android:text="TextView"
android:id="@+id/textView3"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:paddingTop="10px"/>
<RadioButton android:id="@+id/radioButton1"
android:gravity="right"
android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>