android - RadioGroup and TextView in a RelativeLayout - RadioGroup is hiding TextView -
this trying accomplish. textview
, beneath radiobutton
group in radiobuttons
added programmatically. able radiobutton
group displayed radiobuttons
, not textview
. radiobutton
group taking space in layout , textview
invisible.
i have looked numerous posts on stackoverflow.com on formatting , displaying in layout still not figure making mistake.
could please me issue?
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <listview android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent" > </listview> <textview android:id="@+id/sample" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:layout_marginbottom="20dp" android:layout_margintop="20dp" android:background="@color/black" android:gravity="center" android:text="@string/sample" android:textcolor="@color/white" /> <radiogroup android:id="@+id/radio_group" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:orientation="vertical" > </radiogroup> </relativelayout>
change relativelayout linearlayout. there no 'orientation' property relativelayout, things 'relative' each other.
Comments
Post a Comment