android fragments Archives - Androhub

Fragment_Banner

Android Pass Data from Activity to Fragment

Earlier we had learn how to pass data from one activity to another and get back data from another activity. You can find both tutorials here : Android Intent. StartActivityForResult. Today we are going to learn how to pass data from Activity to Fragment. Before starting this tutorial just go through Fragments Tutorial if you

Read More
Material Design Tab Banner

Android Material Design Tabs Using TabLayout

In earlier we use ActionBar Tabs over ViewPager that we had done in earlier post that you can check here. But this ActionBar Tabs is deprecated in material design. So for that we need Material Design Tabs for implementing tabs in our app. We have seen Google Play Store, Whatsapp and many more are using

Read More
Endless Scrolling

Load More Items On Scroll Android (Endless Scrolling)

We pretty much all know the nice technique apps like Gmail, Facebook, etc. use to dynamically load more items to the ListView then you scroll to the bottom. In this article i am going to show you the same thing over ListView and RecyclerView. If you are unaware of ListView and RecyclerView that how to use both views

Read More
Tabs using ViewPager

Android Tab with Swipeable Views using ViewPager

This article shows you how to create tab layout using fragments and viewpager. Also you can swipe between tab view as it is the functionality of viewpager which is not possible when using TabHost. Before getting into this tutorial it is suggested to have knowledge on Fragments and ViewPager as these two are main concepts

Read More
Fragments

Android Fragments

What are fragments? A fragment is an independent Android component which can be used by an activity. A fragment encapsulates functionality so that it is easier to reuse within activities and layouts. A fragment runs in the context of an activity, but has its own life cycle and typically its own user interface. It is

Read More