Here is the XML of a camera test application that worked on the cupcake branch. The preview size spans the entire screen on cupcake. However the same app does not work on the Donut branch without explicitly setting the width and height to 800 and 400 dp respectively?
Why doesn't fill_parent work on the Donut branch? Example XML -------------------- <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_horizontal" > <SurfaceView android:id="@+id/preview_surface" android:layout_width="800dp" -------------- These lines HAVE to be added for donut android:layout_height="480dp" -------------- but not for cupcake to get full screen preview android:layout_alignParentLeft="true" android:layout_alignParentTop="true" > </SurfaceView> </LinearLayout> Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---