Problem with sizes of EditText and Button in Android
- by DixieFlatline
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:
What is the appropriate layout_width for edittext and button?