Wednesday, April 9, 2014

Novice This TableRow layout or its TableLayout parent is useless


Interface settings TableRow tips This TableRow layout or its TableLayout parent is useless, not quite sure where something has gone wrong, the program is not up and running, the feeling is the interface problem, do not know the interface can debug? ?


Interface code below.

android: id = "@ id / layout_main"
android: layout_width = "match_parent"
android: layout_height = "match_parent"
android: background = "@ drawable / main_background"
android: orientation = "vertical">

android: id = "@ id/titlebar1"
android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: background = "@ drawable / bar">

android: id = "@ id/titlebar1_title"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_marginLeft = "10.0dip"
android: layout_marginTop = "7.0dip"
android: text = "@ string/titlebar1_title"
android: textSize = "23.0sp" />


android: layout_width = "match_parent"
android: layout_height = "wrap_content">



android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: gravity = "center_vertical"
android: text = "@ string/titlebar1_label"
android: textColor = "@ drawable / white"
android: textSize = "20sp"
android: textStyle = "bold" />

android: id = "@ id/edit1"
android: layout_width = "200dp"
android: layout_height = "wrap_content"
android: inputType = "text" />



android: id = "@ id/listView1"
android: layout_width = "match_parent"
android: layout_height = "wrap_content">




java file
public class OreActivity extends Activity
{
@ Override
protected void onCreate (Bundle savedInstanceState)
{
super.onCreate (savedInstanceState);
setContentView (R.layout.activity_ore);
}
}
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
android: stretchColumns = "1"
This it?
Reply:
This code is in there plus? ?
cited a floor reply:
android: stretchColumns = "1"
This it?

Reply:
Can run, you can not control.
Why do not you pay more to see a line, it will disappear.

No comments:

Post a Comment