Thursday, February 27, 2014

Strange layout files, obviously yes


 
xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_width = "match_parent"
android: layout_height = "match_parent">
android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: text = "@ string / hello_world" />

Eclipse Tip: The first one is wrong.
Obviously yes, ah, this Zenmo thing.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
cited landlord jiangmuchen reply:
 
xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_width = "match_parent"
android: layout_height = "match_parent">
android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: text = "@ string / hello_world" />

Eclipse Tip: The first one is wrong.
Obviously yes, ah, this Zenmo thing.

Tip The first line is wrong
Reply:
I stick to my eclipse, tips are correct, you create a new project to see
Reply:
I'm here in my test is normal, the landlord first save and then compile it, first clean enough, then what works, and then compile it should be no problem.
Reply:
What you will not see tips, api18 requires linear layout should have oration ..
 android: layout_width = "match_parent" 
android: layout_height = "match_parent"
android: orientation = "vertical">

android: layout_width = "match_parent"
android: layout_height = "wrap_content"
android: text = "@ string / hello_world" />


Reply:
Upstairs said should tricky, I think it is less of orientation is the layout direction is vertical or sideways
Reply:
The default layout is the orientation, the computer may not react, or else from the first line, and began to write, or format under catr + shift + f
Reply:
ori not write that the system default is the horizontal direction
Reply:
Your TextView and Button on the same line by default, but you give them attributes are all match_parent. You put a wide deleted, add weight, you should be ok!

No comments:

Post a Comment