Searched refs:layoutParams (Results 1 – 7 of 7) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | PictureInPictureAutoEnter.java | 88 final LinearLayout.LayoutParams layoutParams; in updateLayout() local 90 layoutParams = new LinearLayout.LayoutParams( in updateLayout() 93 layoutParams.gravity = Gravity.NO_GRAVITY; in updateLayout() 101 layoutParams = new LinearLayout.LayoutParams( in updateLayout() 104 layoutParams.gravity = Gravity.CENTER_HORIZONTAL; in updateLayout() 110 layoutParams = new LinearLayout.LayoutParams( in updateLayout() 113 layoutParams.gravity = Gravity.NO_GRAVITY; in updateLayout() 120 mImageView.setLayoutParams(layoutParams); in updateLayout()
|
/development/samples/training/testingfun/app/tests/src/com/example/android/testingfun/tests/lesson3/ |
D | ClickFunActivityTest.java | 84 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/ |
D | ApplicationsStackLayout.java | 182 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/ |
D | RadioGroup1.java | 48 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/ |
D | DigitalWatchFaceWearableConfigActivity.java | 176 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/ |
D | AudioFxDemo.java | 136 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/ |
D | ContactDetailFragment.java | 377 final LinearLayout.LayoutParams layoutParams = in onLoadFinished() local 395 mDetailsLayout.addView(layout, layoutParams); in onLoadFinished() 399 mDetailsLayout.addView(buildEmptyAddressLayout(), layoutParams); in onLoadFinished() local
|