Android Developer Learning Essentials: 10 High-quality source code for everyone to learn

Source: Internet
Author: User

Recently saw some of the development of things, summed up some source code. Hope can give you some help!

1.Android Source code parsing-pagerslidingtabstrip
The principle of pagerslidingtabstrip to achieve linkage effect is that it refers to the onpagechangelistener of Viewpager. But Viewpager registered listener is not its own onpagechangelistener, but Pagerslidingtabstrip inner class pagelistener. The encapsulation of Viewpager and tab is implemented through Pagelistener. So as to achieve sliding linkage effect. You can set the tab type to TextView or icon. For TextView, you can set the font properties. Achieve a custom effect by providing methods such as slide indicator underline tab style tab weights.
Source Code : Pagerslidingtabstrip

2.Android Source code parsing-discreteseekbar

The Discreteseekbar implements a discrete Slider similar to the Material design style. Discreteseekbar can be used in more than 2.1 of applications, can be directly configured in XML, using a method similar to SeekBar, very simple.

You can configure the display format in XML, or you can customize the displayed numbers or specify display characters in your code.

Source: Discreteseekbar

3. Warcraft Tower Defense-Classic Android game source

This is a classic game, the person who played Warcraft on PC machine should have played similar game, he imitate Warcraft, build tower intercept enemy invasion, exert your wisdom to let the enemy go furthest road, will they destroy in the road.

Source Download: Warcraft Tower Defense-Classic Android game source

4. Jelly pair Touch Game source-android version mini-game
Jelly task is a three-class game, very cute. On the game to touch a wide variety, I believe that we are all kinds of play a lot, this small game we can imitate to test it.


Source Download: Jelly pair Touch Game source-android version mini-game

5.Android Boutique: Side menu.android Source parsing

The main function of Side-menu is to combine with actionbaractivity to display the menu through toolbar.

The original author's demo contains not only Side-menu, but also the use of the circularreveal Library.

Because I mainly analyze the animation effect of Side-menu, so the circularreveal effect is removed.

SOURCE Download:Android Boutique: Side menu.android Source parsing

6. High- Quality Android Project source code Android-pulltorefresh


A powerful pull refresh open source project that supports various controls drop-down refreshes, ListView, Viewpager, WebView, Expandablelistview, GridView, ScrollView, Horizontal ScrollView, fragment up and down around to pull the refresh, than the following Johannilsson that only support the powerful more than the ListView. And it implements a pull-refresh ListView that does not display a refresh prompt in the case of item less than one screen, and the experience is better.
: High- Quality Android Project source code Android-pulltorefresh


Not to be continued! I hope we can help the friends who need them.

Android Developer Learning Essentials: 10 High-quality source code for everyone to learn

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.