Here for the scrolling Grid View I have use SectionPagerAdapter . Simply what I have done here is that , i have created a Fragment with a layout containing a grid view. And with the help of SectonpagerAdapter the fragment will inflate as many as time can depending upon amount of data we have.
Well my **MainActivity** is as something like this :-
- public class MainActivity {
- private ViewPager viewPager;
- private SectionPagerAdapter mSectionPagerAdapter;
- private ArrayList<GridFragment>fragmentArray;
- @Override
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- fragmentArray = new ArrayList<GridFragment>();
- getSetupView();
- mSectionPagerAdapter = new SectionPagerAdapter(getSupportFragmentManager());
- }
About Findnerd
FindNerd, a Social Collabaration Tool or Platform or we can say that it is a social network for Developers which will allow IT professional to interact with each other as it is an effective social network for all the web and mobile developers community in the world.
Also Visit findnerd for various Technology Blogs such as iOS, Java, Android Development Blogs etc. and for its various tools such as Session Tracker tool, Desktop Recording Tool, Project Management Tool etc.
No comments:
Post a Comment