Gankapp Slide and title Modify the color of the full project app
Gankapp Slide and title Modify the color of the complete project app, this project mainly by the sliding frame and 4.4 and above the head title color adjustment and
Home Viewpager Swipe to switch, as well as handle the collision of slide and Viewpager events, and each item clicks into the Image preview page effect,
and the Picture preview page click on the head to show the hidden animation effect.
Source of this project: HTTPS://GITHUB.COM/XIONGWEI-GIT/GANKAPP
The main code of this project is as follows:
Load Viewpager by:
private void Setupviewpager () {
Mbenefitlistfragment = new Benefitlistfragment ();
Mpageradapter = new Mainfragmentpageradapter (Getsupportfragmentmanager ());
Mpageradapter.addfragment (Commongoodslistfragment.newfragment ("Android"), "Android");
Mpageradapter.addfragment (Commongoodslistfragment.newfragment ("ios"), "ios");
Mpageradapter.addfragment (Mbenefitlistfragment, "welfare");
Mviewpager.setadapter (Mpageradapter);
}
Get data using the following methods
/***
* Get the callback interface for the benefit graph and get the data for the background
*/
private observer<goodsresult> getimagegoodsobserver = new Observer<goodsresult> () {
@Override
public void OnNext (final goodsresult goodsresult) {
if (null! = Goodsresult && null! = Goodsresult.getresults ()) {
& nbsp; ImageGoodsCache.getIns (). Addallimagegoods (Goodsresult.getresults ());
}
}
@Override
public void oncompleted () {
LOGGER.D ("Get Background Map Service complete");
}
@Override
public void OnError (final throwable error) {
LOGGER.E (Error, "Get background map service failed");
}
};
Operating effect:
Related code
Gankapp Slide and title Modify the color of the full project app
Androidvideoplayer Play video online
Androidscreenslide Project Toggle View Animation effect
Scrolldownlayout ScrollView and Viewpager colleagues existing event handling
Starratingbar Star Toggle Animation
Anyshareofandroid Android third-party login
Animcheckbox button click Animation effect
Android Market Mainstream slide frame
Percentagecircle Custom Ring Effects
Emojichat Chat page implementation, support send failed resend
Gankapp Slide and title Modify the color of the full project app