Request a layout wording. Probably this is the description!
Overall a LinearLayout contains three LinearLayout.
Three hours.
The first LinearLayout should always at the top.
The second LinearLayout to the middle.
In the middle of this LinearLayout sure to include other layouts, such as putting a ListView, can slide up and down. Not cover third LinearLayout.
The third LinearLayout should always at the bottom.
| ------------------------ |
| Button button | <- first LinearLayout
| ------------------------ |
| |
| Only within this area | <- second LinearLayout
| Slide up and down without affecting |
| Other Layout |
| ------------------------ |
| Button button | <- third LinearLayout
| ------------------------ |
Probably this is the description please advise seniors! If there are other methods can also be a good idea to inform me.
Thank you.
Here is what I wrote, please advise
android: layout_width = "fill_parent" android: layout_height = "fill_parent"
android: orientation = "vertical" xmlns: android = "http://schemas.android.com/apk/res/android">android: layout_width = "wrap_content" android: layout_height = "wrap_content"
android: orientation = "horizontal">
android: layout_height = "wrap_content" android: text = "query" />
android: layout_width = "wrap_content" android: layout_height = "wrap_content"
android: orientation = "horizontal">
android: layout_height = "wrap_content" android: text = "query" />
android: layout_width = "wrap_content" android: layout_height = "wrap_content"
android: orientation = "horizontal">
android: layout_height = "wrap_content" android: text = "query" />
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
If you want only in this region, sliding up and down, without affecting the other layouts, I recommend the middle of the layout of a fixed size should! For example, much higher, width can fill_parent
Reply:
How can that LinearLayout above and below the upper and lower fixed LinearLayout that!
Reply:
Not fixed, but the layout is not recommended to use the value written dead.
You try, the second layout: android: layout_height = "wrap_content" android: layout_weight = "1.0"
Two other high-android: layout_height = "wrap_content"
I would like to do.
Reply:
If you want above and below the LinearLayout linearLayout were fixed at the upper and lower, then you are in the overall linearLayout replaced RelativeLayout, then were set down in the corresponding linearlayout in the upper and lower their property on ok
Reply:
in the corresponding upper and lower linearlayout
This is one way, in fact, as the landlord as you can.
I have no problem directly with the LinearLayout.
Reply:
RelativeLayout I use very little! !
Just learning! Can help me write a simple example!
Reply:
RelativeLayout
There's layout relative to the parent window, plus two properties as long as you can in the child window relative to the parent window layout of
android: layout_alignParentTop = "true"
android: layout_alignParentBottom = "true"
Reply:
Xml based on your modified:
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
xmlns: android = "http://schemas.android.com/apk/res/android">android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: layout_alignParentTop = "true"
android: layout_alignParentLeft = "true"
android: background = "# ffff0000"
>
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: text = "query" />
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: layout_alignParentBottom = "true"
android: layout_alignParentLeft = "true"
android: background = "# ff00ff00"
>
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: text = "query" />
android: gravity = "bottom"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: layout_alignParentLeft = "true"
android: layout_above = "@ id / layout_bottom"
android: layout_below = "@ id / layout_top"
android: background = "# ff0000ff"
>
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: text = "query" />
Relative layout or a good use!
Reply:
Thank you very much! 8th Floor, seniors! You learn!
Reply:
Add android three in: layout_weight = "1"
Reply:
Fourth floor of positive solution, I have encountered this problem, now resolved according to the fourth floor to say, like this one
Reply:
Also a way to the 10th floor, I also use this
Reply:
I almost met the landlord! But I was in the middle of linearLayout using the ScrollView, will not occur due to the content is too long ScrollView wrong?
No comments:
Post a Comment