简体   繁体   中英

Is that possible Relative Layout with Spinner under Scroll View?

i am using Scroll View , under which i have taken Relative Layout with Spinner , But it is not working . Why ? while if i used UI element like Edit Text/Text View, than it is OK. I tried below code ,

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

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
     >
<Spinner
        android:id="@+id/itr1_personalInfo_gender"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />
</RelativeLayout>
</ScrollView>  

I misunterstood the post so i edited it
Edit : Thats possible to be used Please just sent the logcat you get error

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM