Layout in AVD not the same as ADT?

advertisements

I don't see it but the layout on AVD isn't the same as what i expected based on ADT. I have one image button 1/3 and one regular button which should be 2/3 of the width. I created a realtivelayout and for the buttons a linearlayout, why is the layout in ADT en AVD not the same and how can i fix this?

and this is the AVD

<TextView
    android:id="@+id/textHeaderView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/imageQuoteView"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="18dp"
    android:text="@string/textHeaderQuote"
    android:textColor="#FFFFFF"
    android:textSize="24sp" />    

<TextView
    android:id="@+id/viewQuote"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/textHeaderView"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="18dp"
    android:text="@string/textViewQuote"
    android:textColor="#FFFFFF"
    android:textSize="20sp" />

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:layout_alignParentBottom="true"
    android:paddingLeft="0dp"
    >

<ImageButton
    android:id="@+id/btnShare"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:background="#CCCCCC"
    android:contentDescription="@string/btnsharetext"
    android:onClick="shareQuote"
    android:src="@android:drawable/ic_menu_share" />

<Button
    android:id="@+id/btnSendQuote"
    android:layout_weight="2"
    android:layout_height="80dp"
    android:onClick="sendQuotePage"
    android:text="@string/btn_text_sendQuote"
    android:background="#FEFEFE" />

</LinearLayout>


An AVD(Android virtual device) has ofcourse its screen size and resulution. In the ADT(Android development tool) you can select a screen for your layout, just above the screen layout. Default is Nexus one. Try to set an other screen and see what happens.