Trust Eclipse (actually it is ADT whining about it). What you're doing is 
redundant and unnecessary, that's why you are getting this warning message. 
ScrollView is also a kind of layout and derived from FrameLayout.


On Friday, February 15, 2013 3:29:11 AM UTC-6, Damien wrote:
>
> Hi All,
> I am getting an odd warning from eclipse. "The ScrollView layout or its 
> parent LinearLayout is useless"
>
> I need some type of layout at the top level and I need the scrollview as 
> the content is bigger thatn the screen.  Is there a better way to do this 
> or is Eclipse whining about nothing?
>
> Regards
> Damien
>
>
> <?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" >
>
>     
>     <ScrollView     
>    android:layout_marginTop="10dip"           
>      android:layout_height="wrap_content"     
>      android:layout_width="fill_parent">
>
>      
>         <LinearLayout            
>             android:layout_width="match_parent"
>             android:layout_height="wrap_content"
>             android:orientation="vertical" >
>         .......
>         </LinearLayout> 
>     </ScrollView>
> </LinearLayout>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to