android - How to achieve two sections below listview where i can place dynamic radiobuttons -


how can achieve 2 sections below listview can place dynamic radio buttons, below image. listview can scrollable extent, , below there layouts divided 2 parts radiobuttons fit dynamically

below layout :

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >      <textview         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:padding="10dp"         android:text="@string/some_text"         android:textsize="20sp" />      <button         android:id="@+id/findselected"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="find countries selected" />      <listview         android:id="@+id/listview1"         android:layout_width="fill_parent"         android:layout_height="fill_parent" />    </linearlayout> 

you should use weighted propertie , horizontal linearlayout footer. code should looks like:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >      <textview         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:padding="10dp"         android:text="@string/some_text"         android:textsize="20sp" />      <button         android:id="@+id/findselected"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="find countries selected" />      <!-- below attributes (layout_height , layout_weight) fill as possible -->     <listview         android:id="@+id/listview1"         android:layout_width="match_parent"         android:layout_height="0dp"          android:layout_weight="1"         android:gravity="top"/>        <linearlayout          android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:orientation="horizontal">         <linearlayout              android:layout_width="wrap_content"              android:layout_height="wrap_content">             <!-- content of column 1 -->         </linearlayout>         <linearlayout              android:layout_width="wrap_content"              android:layout_height="wrap_content">             <!-- content of column 2 -->         </linearlayout>      </linearlayout> </linearlayout> 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -