Grideviewitem does not overlap after you click it.

Source: Internet
Author: User

Grideviewitem does not overlap after you click it.

I made a filter on a search page.

The general idea is as follows: use Include to introduce a filter box () in the root layout (),

Set the margin to android: layout_marginBottom = "-250dp" android: layout_alignParentBottom = "true"

The objective is to hide the screening box below the screen, and then move the filtering box up to 250dp through the animated effect TranslateAnimation to achieve the effect similar to that of the slide menu.

 

This effect can be achieved, but when I introduce the GridView in the layout filter box, the layout is still normal when the animation effect is completed (), but when I click the Item in the GridView, all items will be squeezed to the left, and all items overlap and disorder.

Then I tried to pull the GridView to the directory, and the GridView was normally displayed, and the click was not bad and overlapped.

So I suspected it was an animation effect? As a result, the layout of the GridView cannot be calculated normally, leading to confusion.

Cannot the GridView be included in an animation? Please let us know about Androider.

I will continue to explore this question = ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.