Home
last modified time | relevance | path

Searched refs:layoutParams (Results 1 – 6 of 6) sorted by relevance

/development/samples/training/testingfun/app/tests/src/com/example/android/testingfun/tests/lesson3/
DClickFunActivityTest.java84 final ViewGroup.LayoutParams layoutParams = mClickMeButton.getLayoutParams(); in testClickMeButton_layout() local
85 assertNotNull(layoutParams); in testClickMeButton_layout()
86 assertEquals(layoutParams.width, WindowManager.LayoutParams.MATCH_PARENT); in testClickMeButton_layout()
87 assertEquals(layoutParams.height, WindowManager.LayoutParams.WRAP_CONTENT); in testClickMeButton_layout()
/development/samples/Home/src/com/example/android/home/
DApplicationsStackLayout.java182 LayoutParams layoutParams = mButton.getLayoutParams(); in onLayout() local
183 final int widthSpec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); in onLayout()
184 … final int heightSpec = MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); in onLayout()
241 LayoutParams layoutParams; in stackApplications() local
254 layoutParams = view.getLayoutParams(); in stackApplications()
255 widthSpec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY); in stackApplications()
256 heightSpec = MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); in stackApplications()
278 addViewInLayout(view, -1, layoutParams); in stackApplications()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DRadioGroup1.java48 LinearLayout.LayoutParams layoutParams = new RadioGroup.LayoutParams( in onCreate() local
51 mRadioGroup.addView(newRadioButton, 0, layoutParams); in onCreate()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DDigitalWatchFaceWearableConfigActivity.java176 RecyclerView.LayoutParams layoutParams = in onBindViewHolder() local
183 layoutParams.setMargins(0, colorPickerItemMargin, 0, 0); in onBindViewHolder()
185 layoutParams.setMargins(0, 0, 0, colorPickerItemMargin); in onBindViewHolder()
187 layoutParams.setMargins(0, 0, 0, 0); in onBindViewHolder()
189 colorItemViewHolder.itemView.setLayoutParams(layoutParams); in onBindViewHolder()
/development/samples/ApiDemos/src/com/example/android/apis/media/
DAudioFxDemo.java136 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( in setupEqualizerFxAndUI() local
139 layoutParams.weight = 1; in setupEqualizerFxAndUI()
141 bar.setLayoutParams(layoutParams); in setupEqualizerFxAndUI()
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
DContactDetailFragment.java377 final LinearLayout.LayoutParams layoutParams = in onLoadFinished() local
395 mDetailsLayout.addView(layout, layoutParams); in onLoadFinished()
399 mDetailsLayout.addView(buildEmptyAddressLayout(), layoutParams); in onLoadFinished() local