My situation:
My XML structure:
<Parent Relative Layout> //background color is white
<Upper Linear Layout>
<Bottom Linear Layout> //background color is red
</Parent Relative Layout>
My 2 approaches to animate the upper linear layout:
What I expect with both these 2 approaches:
What I actually see with both these 2 approaches:
I've no idea what I am doing wrong here. Please help.
Problem solved. I need to dynamically create this Upper Linear Layout and add it to the Parent Relative Layout , instead of declaring it statically in the xml. When I do swipe animation again, the underneath bottom linear layout will appear.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.