Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 236) sorted by relevance

12345678910

/development/samples/devbytes/animation/LayoutTransChanging/src/com/example/android/layouttranschanging/
DLayoutTransChanging.java47 final LinearLayout container = in onCreate() local
48 (LinearLayout) findViewById(R.id.container); in onCreate()
53 container.addView(new ColoredView(this)); in onCreate()
60 container.addView(new ColoredView(context), 1); in onCreate()
67 if (container.getChildCount() > 0) { in onCreate()
69 container.removeViewAt(Math.min(1, container.getChildCount() - 1)); in onCreate()
78 LayoutTransition transition = container.getLayoutTransition(); in onCreate()
/development/samples/browseable/CustomTransition/src/com.example.android.customtransition/
DCustomTransitionFragment.java52 …public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { in onCreateView() argument
53 return inflater.inflate(R.layout.fragment_custom_transition, container, false); in onCreateView()
59 FrameLayout container = (FrameLayout) view.findViewById(R.id.container); in onViewCreated() local
66 Scene.getSceneForLayout(container, R.layout.scene1, context), in onViewCreated()
67 Scene.getSceneForLayout(container, R.layout.scene2, context), in onViewCreated()
68 Scene.getSceneForLayout(container, R.layout.scene3, context), in onViewCreated()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.slidingtabsbasic/
DSlidingTabsBasicFragment.java56 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
58 return inflater.inflate(R.layout.fragment_sample, container, false); in onCreateView()
132 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
135 container, false); in instantiateItem()
137 container.addView(view); in instantiateItem()
154 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
155 container.removeView((View) object); in destroyItem()
/development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/
DBitmapScaling.java43 LinearLayout container = (LinearLayout) findViewById(R.id.scaledImageContainer); in onCreate() local
51 addScaledImageView(bitmap, i, container); in onCreate()
55 private void addScaledImageView(Bitmap original, int sampleSize, LinearLayout container) { in addScaledImageView() argument
73 container.addView(scaledImageView); in addScaledImageView()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DCardFlipActivity.java64 .add(R.id.container, new CardFrontFragment()) in onCreate()
136 .replace(R.id.container, new CardBackFragment()) in flipCard()
172 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
174 return inflater.inflate(R.layout.fragment_card_front, container, false); in onCreateView()
186 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
188 return inflater.inflate(R.layout.fragment_card_back, container, false); in onCreateView()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DStepAdapter.java66 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
69 .inflate(R.layout.showcase_skeleton, container, false /* attachToRoot */); in instantiateItem()
83 container.addView(skeletonLayout); in instantiateItem()
88 public void destroyItem(ViewGroup container, int position, Object view) { in destroyItem() argument
89 container.removeView((View) view); in destroyItem()
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/
DMainActivity.java109 public void destroyItem(ViewGroup container, int position, Object object) {
111 container.removeView((View) object);
115 public Object instantiateItem(ViewGroup container, int position) {
129 .inflate(R.layout.item_text, container, false);
135 container.addView(tv);
141 .inflate(R.layout.item_image, container, false);
147 container.addView(iv);
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DLayoutAnimationsHideShow.java46 ViewGroup container = null; field in LayoutAnimationsHideShow
57 container = new LinearLayout(this); in onCreate()
58 container.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
66 container.addView(newButton); in onCreate()
77 parent.addView(container); in onCreate()
82 for (int i = 0; i < container.getChildCount(); ++i) { in onCreate()
83 View view = (View) container.getChildAt(i); in onCreate()
109 container.setLayoutTransition(mTransitioner); in resetTransition()
DLayoutAnimations.java45 ViewGroup container = null; field in LayoutAnimations
59 container = new FixedGridLayout(this); in onCreate()
60 container.setClipChildren(false); in onCreate()
61 ((FixedGridLayout)container).setCellHeight(90); in onCreate()
62 ((FixedGridLayout)container).setCellWidth(100); in onCreate()
64 container.setLayoutTransition(transitioner); in onCreate()
79 parent.addView(container); in onCreate()
88 container.removeView(v); in onCreate()
91 container.addView(newButton, Math.min(1, container.getChildCount())); in onCreate()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMusicPlayerActivity.java34 .add(R.id.container, BrowseFragment.newInstance(null)) in onCreate()
45 .replace(R.id.container, queueFragment) in onMediaItemSelected()
50 .replace(R.id.container, BrowseFragment.newInstance(item.getMediaId())) in onMediaItemSelected()
/development/samples/browseable/GridViewPager/src/com.example.android.wearable.gridviewpager/
DCustomFragment.java28 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
30 return inflater.inflate(R.layout.custom_fragment, container, false); in onCreateView()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DNotificationDisplay.java50 RelativeLayout container = new RelativeLayout(this); in onCreate() local
61 container.addView(button, lp); in onCreate()
63 setContentView(container); in onCreate()
DFragmentHideShow.java79 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
81 View v = inflater.inflate(R.layout.labeled_text_edit, container, false); in onCreateView()
105 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
107 View v = inflater.inflate(R.layout.labeled_text_edit, container, false); in onCreateView()
DFragmentArgumentsFragment.java47 @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
49 View v = inflater.inflate(R.layout.fragment_arguments_fragment, container, false); in onCreateView()
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/
DMainActivity.java99 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
101 return inflater.inflate(R.layout.white_light, container, false); in onCreateView()
110 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
112 mView = (PartyLightView) inflater.inflate(R.layout.party_light, container, false); in onCreateView()
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DInstructionFragment.java40 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
42 return inflater.inflate(R.layout.fragment_instruction, container, false); in onCreateView()
/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/fragments/
DDiscoveryFragment.java35 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
37 return inflater.inflate(R.layout.discovery_fragment, container, false); in onCreateView()
DAssetFragment.java39 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
41 View view = inflater.inflate(R.layout.asset_fragment, container, false); in onCreateView()
/development/samples/devbytes/animation/SlidingFragments/src/com/example/android/slidingfragments/
DImageFragment.java29 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
31 View view = inflater.inflate(R.layout.image_fragment, container, false); in onCreateView()
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DMainActivity.java73 .replace(R.id.container, SetupProfileFragment.newInstance()) in showSetupProfile()
79 .replace(R.id.container, new StatusFragment()) in showStatusProfile()
85 .replace(R.id.container, new AppRestrictionEnforcerFragment()) in showMainFragment()
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
DMainActivity.java45 .replace(R.id.container, SetupProfileFragment.newInstance()) in showSetupProfile()
51 .add(R.id.container, BasicManagedProfileFragment.newInstance()) in showMainFragment()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsGridPagerAdapter.java100 public Object instantiateItem(ViewGroup container, int row, final int column) { in instantiateItem() argument
109 R.layout.gridpager_fullscreen_image, container, false); in instantiateItem()
137 container.addView(view); in instantiateItem()
142 R.layout.gridpager_card, container, false); in instantiateItem()
149 container.addView(cardScrollView); in instantiateItem()
154 R.layout.gridpager_action, container, false); in instantiateItem()
162 container.addView(navActionPage); in instantiateItem()
167 R.layout.gridpager_action, container, false); in instantiateItem()
175 container.addView(openActionPage); in instantiateItem()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/
DSwipeRefreshListFragment.java39 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
43 final View listFragmentView = super.onCreateView(inflater, container, savedInstanceState); in onCreateView()
46 mSwipeRefreshLayout = new ListFragmentSwipeRefreshLayout(container.getContext()); in onCreateView()
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/fragments/
DSettingsFragment.java35 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
37 View view = inflater.inflate(R.layout.setting_layout, container, false); in onCreateView()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DHover.java74 View container = findViewById(R.id.container); in onCreate() local
75 container.setOnHoverListener(new View.OnHoverListener() { in onCreate()

12345678910