Problem with sizes of EditText and Button in Android

Posted by DixieFlatline on Stack Overflow See other posts from Stack Overflow or by DixieFlatline
Published on 2010-05-10T18:45:02Z Indexed on 2010/05/10 19:04 UTC
Read the original article Hit count: 451

Filed under:
|

I want to make the edittext width the same size as button. My EditText is currently very small. I use relative layout.

   <TextView   
    android:id="@+id/aha4"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="17dip"
    android:text="Vzdevek:"
    android:layout_below="@id/aha3" />  
     <EditText android:id="@+id/nick"       
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"     
        android:layout_below="@id/nivo"
        android:layout_toRightOf="@id/aha4"/>   
      <Button android:id="@+id/poslji"
            android:text="Pošlji"
            android:layout_height="wrap_content"
            android:layout_width="20dip"
            android:typeface="serif" android:textStyle="bold"
            android:layout_alignParentRight="true"
            android:layout_below="@id/nivo"
        android:layout_toRightOf="@id/nick"/>   

What i currently get is this: alt text

What is the appropriate layout_width for edittext and button?

© Stack Overflow or respective owner

Related posts about android

Related posts about layout