1
I have 3 EditText
's in a layout that are distributed the weights between them, but when I go down with a color, the impression that it is only one, would have a better editing method or put a margin?
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" >
<EditText
android:id="@+id/M00"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#0000ff"
android:ems="10"
android:gravity="center"
android:inputType="numberSigned|numberDecimal"
android:textColor="#ffffff" >
<requestFocus />
</EditText>
<EditText
android:id="@+id/M01"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#0000ff"
android:ems="10"
android:gravity="center"
android:inputType="numberSigned|numberDecimal"
android:textColor="#ffffff" />
<EditText
android:id="@+id/M02"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#0000ff"
android:ems="10"
android:gravity="center"
android:inputType="numberSigned|numberDecimal"
android:textColor="#ffffff" />
</LinearLayout>
Well, the margin you can use the parameter
android:layout_margin
, and when you say "frame", you are referring to a border in these text fields?– Paulo Rodrigues
Yes, that’s exactly it
– Vale
@Paulorodrigues android:layou_margin would solve, but gave error when putting in Edittext
– Vale
You used
layou_margin
even without the t, or was just typo here?– Paulo Rodrigues