Create an Angry Bird selection level interface

Source: Internet
Author: User

First, let's look at several familiar ones:

 

This interface is very familiar to everyone. Now the younger brother wants to do this.
First, let's talk about my ideas:
Step 1: dynamically select typographical styles
Because there are four interface effects, the number of buttons on each interface is different, that is, there are four different scheduling types, so I consider the design shift problem as follows: (Note: count number of levels)
15 <count <= 21, the layout of 1st images is 3*7.
12 <count <= 15, the layout of 2nd images is 3*5
6 <count <= 12, the layout of 3rd images is 2*6
When count <= 6, the layout of 4th images is 2*3.
Step 2: dynamically create a custom button
Now that the style of the basic version has been selected, the next step is to dynamically Add the button to the grid layout.
Step 3: Add gallery and button to the layout, and then you can create the level interface gridview. This dynamic interface is created dynamically based on the array backimg [] that stores the background image.

Source codeDownload:Http://download.csdn.net/detail/aa4790139/4019204

The effect is as follows:

This effect is quite good and can meet your needs. If you want to contact the angry birds on the pageLackAndProblemOf:

1. the scroll axis Effect of gallery is the shadow on both sides of the left and right (circled in red). Remove this effect and change it to three display effects on the bird interface:

2. The custom adapter inherits the getview method in baseadapter, and changes the imageview to a button, so no response is returned? Why?

3. The sliding area is only valid for the row at the bottom of the button, and when it slides to 2/3, does my finger loosen at this time, but it will automatically display the Large View Interface.

4. When it slides to the leftmost, it does not move. If you want to slide to the far left side, you can still slide, but it is not displayed on the left side. It will automatically show back after you release your hands.

My younger brother has not solved the problem for the time being. I forgot to tell my friend about it and share it with you. Thank you!

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.