As stated, I am now the layout is linear layout, there Linearlayout, Linearlayout Here is LISTVIEW, listview Here is Linearlayout, very simple
An Administration. I now want to implement a function, or a slide when the bottom fell listview when the topmost Linearlayout to automatically hide disappear, there is a dynamic between
Painting, is slowly disappearing from the edge.
I set this Linearlayout directly to the visibility is GONE, then add an animation TranslateAnimation, so a direct result of this Linearlayout
Disappear along with the size of the space it occupies are gone. Animation can not see. On the contrary, when the upward slide will appear in this Linearlayout, my method is to set it
The visibility is VISIBLE, but this result is that it will immediately Linearlayout size occupied, we see the effect is a black, then slowly
animation
The emergence from sliding out.
I wanted to dynamically modify the height of this Linearlayout, so this effect can occur, but change the height of the background images are compressed look, ugly ah. Network
Some posts that change the coordinates, I use this Linearlayout change the layout of any heart coordinate it, we have no good way? ? ?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
android: layout_width = "fill_parent" android: layout_height = "fill_parent"
android: orientation = "vertical">android: layout_height = "wrap_content" layout = "@ layout / head" /> android: layout_height = "wrap_content" android: layout_weight = "1" /> android: layout_height = "wrap_content" layout = "@ layout / bottom" />
Reply:
Add animation to TranslateAnimation listening,
It's only then that the top end of the animation layout is set to gone.
By contrast, when a fake copy of the layout you want to move, when gone between listening inside his move after the end of the set layout for VISIBLE
I still do not completely understand the major you want to achieve what effect, such as when scrolling listview when the top of the layout at the same time it needs to be moved?
If that's the case you can consider this the top of the layout of the header made lisetview
Reply:
Is such that when the next slide when listvew reach the next stop and not the tail position, header listview to slowly disappear up while also upward expansion is equivalent to an increase of the height of the top header to move displaced.
Reply:
Top, to share learning!
Reply:
How to achieve it?
Reply:
With demand, the landlord can give me a demo? Thank you
Reply:
Landlord to achieve it? Exchange about it
No comments:
Post a Comment