2 messages in com.googlegroups.android-developers[android-developers] Re: How to add m...
FromSent OnAttachments
rutu23 May 2008 00:46 
dolan kundu23 May 2008 05:09 
Subject:[android-developers] Re: How to add more then one spinner in relative layout
From:dolan kundu (dkku@gmail.com)
Date:05/23/2008 05:09:41 AM
List:com.googlegroups.android-developers

Hi rutu,

In your 1st question, to avoid overlapping of d spinner, set the y-axis in the xml page related with the spinner. In your 2nd question, create button or what ever you want. then make these as boolean value by setChecked .

Thanks, Dolan.

On Fri, May 23, 2008 at 1:17 PM, rutu <angh@gmail.com> wrote:

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent">

<view class="com.google.android.maps.MapView" android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="fill_parent" />

<Spinner android:id="@+id/spinnerCITY" android:layout_alignParentTop="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawSelectorOnTop="true"

/>

<Spinner android:id="@+id/spinnerMOVIE" android:layout_alignParentTop="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawSelectorOnTop="true"

/>

</RelativeLayout>

THIS IS THE CODE FOR XML FILE IT IS SHOWING TWO SPINNERS BUT THEY ARE OVERLAPPING CAN U SUGGEST ME THE WAY HOW TO SOLVE THIS PROBLEM ONE MORE THING I WANT THIS TEO SDPINNER TO BE IN DIFFERENT VIEW BECAUSE ONE OF THE SPINNER HAS TO BE VISIBLE AND ONE SHOULD NOT BE VISIBLE