Lines Matching refs:view
20 import com.example.android.common.view.SlidingTabLayout;
24 import android.support.v4.view.PagerAdapter;
25 import android.support.v4.view.ViewPager;
26 import android.view.LayoutInflater;
27 import android.view.View;
28 import android.view.ViewGroup;
32 * A basic sample which shows how to use {@link com.example.android.common.view.SlidingTabLayout}
52 * Inflates the {@link View} which will be displayed by this {@link Fragment}, from the app's
56 public View onCreateView(LayoutInflater inflater, ViewGroup container,
64 * Here we can pick out the {@link View}s we need to configure from the content view.
69 * @param view View created in {@link #onCreateView(LayoutInflater, ViewGroup, Bundle)}
72 public void onViewCreated(View view, Bundle savedInstanceState) {
75 mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
82 mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs);
89 * The {@link android.support.v4.view.PagerAdapter} used to display pages in this sample.
106 * same object as the {@link View} added to the {@link ViewPager}.
109 public boolean isViewFromObject(View view, Object o) {
110 return o == view;
128 * Instantiate the {@link View} which should be displayed at {@code position}. Here we
129 * inflate a layout from the apps resources and then change the text view to signify the position.
134 View view = getActivity().getLayoutInflater().inflate(R.layout.pager_item,
136 // Add the newly created View to the ViewPager
137 container.addView(view);
139 // Retrieve a TextView from the inflated View, and update it's text
140 TextView title = (TextView) view.findViewById(R.id.item_title);
145 // Return the View
146 return view;
151 * {@link View}.
155 container.removeView((View) object);