android - How to put a Spinner beside a RadioButton -


i have layout:

(since reputation not yet 10 sincerely ask view image link) http://tinypic.com/r/2q9f80z/5

i want put spinner beside last radiobutton can see in picture.

here's code:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"         android:layout_height="match_parent"         android:orientation="vertical" >  <!-- linearlayout containing search/find customer -->       <!-- textview search/find customer -->      <linearlayout         android:layout_width="wrap_content"         android:layout_height="wrap_content" >      <textview         android:id="@+id/textview1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="search/find customer" />     </linearlayout>      <linearlayout         android:layout_width="wrap_content"         android:layout_height="wrap_content" >      <edittext         android:id="@+id/etsearch"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:background="@layout/roundable_edittext"         android:hint="@string/hint_search" >         </edittext>     </linearlayout>      <linearlayout         android:layout_width="wrap_content"         android:layout_height="wrap_content" >      <button         android:layout_width="wrap_content"         android:layout_height="match_parent"         android:text="search" />      <button         android:layout_width="match_parent"         android:layout_height="match_parent"         android:text="cancel" /> </linearlayout>  <linearlayout     android:layout_width="wrap_content"     android:layout_height="wrap_content" > </linearlayout>  <linearlayout     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_margintop="20dp" >      <textview         android:id="@+id/options"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="search/find customer" /> </linearlayout>  <linearlayout     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:orientation="vertical" >      <radiogroup         android:layout_width="wrap_content"         android:layout_height="wrap_content" >          <radiobutton             android:id="@+id/rdallcustomers"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:checked="true"                 android:text="all customers" />              <radiobutton                 android:id="@+id/rdtoday"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="today" />              <radiobutton                 android:id="@+id/rdtoday"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="owner\&apos;s name" />              <radiobutton                 android:id="@+id/rdtoday"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="trade name" />              <radiobutton                 android:id="@+id/rdtoday"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="itinerary" />         </radiogroup>     </linearlayout>      <linearlayout         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:orientation="vertical" >          <spinner             android:layout_width="163dp"             android:layout_height="wrap_content"             android:entries="@array/spinner_itinerary"             android:gravity="bottom" />     </linearlayout>  </linearlayout> 

thanks in advance!

man, should not use spinner beside radio button, isnt design practice, instead should put spinner under radio button, , if user select radiobutton turn spinner visible.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -