android - LinearLayout with TextEdit and EditText -


When I run the following code from my activity_main.xml file, I get this output:

Width

height

area

perimeter

Any field on the screen to input any value for the edit text field I have created an ID using the line in my XML: Android: id = "@ + id / id_value" in eclipses, I also have the project - & gt; Clean the emulator and restart If someone can tell me in the right direction what is happening, then it will be great

   TextView andro Id: layout_width = "match_parent" Android: layout_height = "wrap_content" android: text = "@ string / width_string" Android: textSize = "12sp" /> & gt; EditText Android: id = "@ + id / width_edit" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: inputType = "numberDecimal" />  & Lt; EditText Android: AD = "@ + ID / height_edit" Android: layout_width = "match_perrent" Android: layout_heat = "wrap-content" Android: inputtip = "number decimal" /> & Lt; / LinearLayout & gt; & Lt; LinearLayout Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: orientation = "horizontal" & gt; & Lt; TextView Android: layout_width = "match_parent" android: layout_height = "wrap_content" android: textSize = "12sp" Android: text = "@ string / area_string" /> & Lt; TextView Android: id = "@ + id / area_string" android: layout_width = "match_perrent" android: layout_height = "wrap_content" android: text = "@ string / area_string" /> & Lt; / LinearLayout & gt; & Lt; LinearLayout Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: orientation = "horizontal" & gt; & Lt; TextView Android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: text = "@ string / perim_string" /> & Lt; TextView android: id = "@ + id / perim_string" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: text = "@ string / perim_string" /> & Lt; / LinearLayout & gt;  TextView and on EditText you have set the layout_width   

< p> match_parent as a horizontal linear line inside.

Set Layout 1 of TextView and EditText (probably the best option because they will take up to 50% of both widths) or change the width of both to wrap_content.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -