Why is there a gap between image and top of screen in my android app?

shmp302

New Member
in my xml file i am using this. My question is why do I get such a huge gap between top of screen and image when using it on a smaller screen. On a huge screen however everything is fine.EDIT: I think the problem is because of the weight. Any ideas?\[code\]<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <ImageView android:id="@+id/area" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:layout_weight="1" android:src="http://stackoverflow.com/questions/12671949/@drawable/area_selector" android:contentDescription="@string/app_name"/> <ImageView android:id="@+id/volume" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:layout_weight="1" android:src="http://stackoverflow.com/questions/12671949/@drawable/volume_selector" android:contentDescription="@string/app_name"/> </LinearLayout>\[/code\]
 
Back
Top