@@ -0,0 +1,1835 @@
+/*%0A * Copyright (c) 2014 Personal-Health-Monitoring-System%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * %09http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.cse3310.phms.ui.fragments;%0A%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.FragmentPagerAdapter;%0Aimport android.support.v4.view.ViewPager;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport com.actionbarsherlock.app.SherlockFragment;%0Aimport com.cse3310.phms.R;%0Aimport com.viewpagerindicator.TabPageIndicator;%0A%0Apublic class TabsIndicatorFragment%3CT extends FragmentPagerAdapter%3E extends SherlockFragment %7B%0A%0A    protected T mAdapter;%0A%0A    public static %3CT extends FragmentPagerAdapter%3E TabsIndicatorFragment newInstance(T adapter) %7B%0A        TabsIndicatorFragment%3CT%3E fragment = new TabsIndicatorFragment%3CT%3E();%0A        fragment.mAdapter = adapter;%0A        return fragment;%0A    %7D%0A%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) %7B%0A        View view = inflater.inflate(R.layout.tabs_indicator, container, false);%0A%0A        ViewPager mPager = (ViewPager) view.findViewById(R.id.pager);%0A        mPager.setAdapter(mAdapter);%0A%0A        TabPageIndicator mIndicator = (TabPageIndicator) view.findViewById(R.id.indicator);%0A        mIndicator.setViewPager(mPager);%0A%0A        return view;%0A    %7D%0A%7D%0A

add reusable tab indicator fragment.