Searched refs:LayoutParams (Results 176 - 200 of 430) sorted by relevance

1234567891011>>

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActionBarContextView.java181 final LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
182 LayoutParams.MATCH_PARENT);
227 protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
230 return new MarginLayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
234 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) {
289 ViewGroup.LayoutParams lp = mCustomView.getLayoutParams();
290 final int customWidthMode = lp.width != LayoutParams
[all...]
H A DActionBarContainer.java217 final ViewGroup.LayoutParams lp = tabView.getLayoutParams();
218 lp.width = LayoutParams.MATCH_PARENT;
219 lp.height = LayoutParams.WRAP_CONTENT;
245 final LayoutParams lp = (LayoutParams) view.getLayoutParams();
288 final LayoutParams lp = (LayoutParams) tabContainer.getLayoutParams();
H A DToolbarWidgetWrapper.java146 final ViewGroup.LayoutParams lp = mToolbar.getLayoutParams();
454 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams();
455 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT;
456 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
516 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams();
517 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT;
518 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
531 Toolbar.LayoutParams l
[all...]
/frameworks/base/core/java/android/widget/
H A DStackView.java199 mHighlight.setLayoutParams(new LayoutParams(mHighlight));
200 addViewInLayout(mHighlight, -1, new LayoutParams(mHighlight));
203 mClickFeedback.setLayoutParams(new LayoutParams(mClickFeedback));
204 addViewInLayout(mClickFeedback, -1, new LayoutParams(mClickFeedback));
236 LayoutParams lp = (LayoutParams) view.getLayoutParams();
295 LayoutParams lp = (LayoutParams) view.getLayoutParams();
539 LayoutParams lp = (LayoutParams) chil
1272 class LayoutParams extends ViewGroup.LayoutParams { class in class:StackView
1281 LayoutParams(View view) { method in class:StackView.LayoutParams
1290 LayoutParams(Context c, AttributeSet attrs) { method in class:StackView.LayoutParams
[all...]
H A DMediaController.java80 private WindowManager.LayoutParams mDecorLayoutParams;
155 mDecorLayoutParams = new WindowManager.LayoutParams();
156 WindowManager.LayoutParams p = mDecorLayoutParams;
158 p.height = LayoutParams.WRAP_CONTENT;
161 p.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;
162 p.flags |= WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
163 | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
164 | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH;
180 WindowManager.LayoutParams p = mDecorLayoutParams;
233 FrameLayout.LayoutParams frameParam
[all...]
H A DGallery.java49 * Views given to the Gallery should use {@link Gallery.LayoutParams} as their
328 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
329 return p instanceof LayoutParams;
333 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) {
334 return new LayoutParams(p);
338 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) {
339 return new LayoutParams(getContext(), attrs);
343 protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
345 * Gallery expects Gallery.LayoutParams
1527 public static class LayoutParams extends ViewGroup.LayoutParams { class in class:Gallery
1528 public LayoutParams(Context c, AttributeSet attrs) { method in class:Gallery.LayoutParams
1532 public LayoutParams(int w, int h) { method in class:Gallery.LayoutParams
1536 public LayoutParams(ViewGroup.LayoutParams source) { method in class:Gallery.LayoutParams
[all...]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DHitRectBug.java73 RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(128, 128);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DControlBar.java78 LayoutParams lp = (LayoutParams) second.getLayoutParams();
H A DGridLayoutManager.java56 * LayoutParams for {@link HorizontalGridView} and {@link VerticalGridView}.
61 static class LayoutParams extends RecyclerView.LayoutParams { class in class:GridLayoutManager
75 public LayoutParams(Context c, AttributeSet attrs) { method in class:GridLayoutManager.LayoutParams
79 public LayoutParams(int width, int height) { method in class:GridLayoutManager.LayoutParams
83 public LayoutParams(MarginLayoutParams source) { method in class:GridLayoutManager.LayoutParams
87 public LayoutParams(ViewGroup.LayoutParams source) { method in class:GridLayoutManager.LayoutParams
91 public LayoutParams(RecyclerView.LayoutParams sourc method in class:GridLayoutManager.LayoutParams
95 public LayoutParams(LayoutParams source) { method in class:GridLayoutManager.LayoutParams
[all...]
H A DShadowOverlayContainer.java256 LayoutParams lp = mWrappedView.getLayoutParams();
257 if (lp.width == LayoutParams.MATCH_PARENT) {
263 if (lp.height == LayoutParams.MATCH_PARENT) {
280 if (lp.width == LayoutParams.MATCH_PARENT) {
287 if (lp.height == LayoutParams.MATCH_PARENT) {
/frameworks/base/core/java/android/view/
H A DWindowManager.java55 * {@link LayoutParams} {@link LayoutParams#token}
109 public static class LayoutParams extends ViewGroup.LayoutParams class in interface:WindowManager
129 * to the view associated with these LayoutParams. Specify 0 if the view
138 * to the view associated with these LayoutParams. Specify 0 if the view
812 * w.setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
813 * WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
1109 * Further, this can only be set by {@link LayoutParams#TYPE_STATUS_BAR}.
1124 * This can only be set by {@link LayoutParams#TYPE_STATUS_BA
1584 public LayoutParams() { method in class:WindowManager.LayoutParams
1590 public LayoutParams(int _type) { method in class:WindowManager.LayoutParams
1596 public LayoutParams(int _type, int _flags) { method in class:WindowManager.LayoutParams
1603 public LayoutParams(int _type, int _flags, int _format) { method in class:WindowManager.LayoutParams
1610 public LayoutParams(int w, int h, int _type, int _flags, int _format) { method in class:WindowManager.LayoutParams
1617 public LayoutParams(int w, int h, int xpos, int ypos, int _type, method in class:WindowManager.LayoutParams
1704 public LayoutParams(Parcel in) { method in class:WindowManager.LayoutParams
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuItemView.java259 IconMenuView.LayoutParams getTextAppropriateLayoutParams() {
260 IconMenuView.LayoutParams lp = (IconMenuView.LayoutParams) getLayoutParams();
263 lp = new IconMenuView.LayoutParams(
264 IconMenuView.LayoutParams.MATCH_PARENT, IconMenuView.LayoutParams.MATCH_PARENT);
H A DMenuDialogHelper.java82 WindowManager.LayoutParams lp = mDialog.getWindow().getAttributes();
83 lp.type = WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG;
87 lp.flags |= WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DStaggeredGridLayoutManager.java318 LayoutParams lp = (LayoutParams) child.getLayoutParams();
352 LayoutParams nextLp = (LayoutParams) nextChild.getLayoutParams();
997 private void measureChildWithDecorationsAndMargin(View child, LayoutParams lp) {
1028 LayoutParams lp = (LayoutParams) child.getLayoutParams();
1112 ViewGroup.LayoutParams lp = host.getLayoutParams();
1113 if (!(lp instanceof LayoutParams)) {
1117 LayoutParams sgl
2025 public static class LayoutParams extends RecyclerView.LayoutParams { class in class:StaggeredGridLayoutManager
2037 public LayoutParams(Context c, AttributeSet attrs) { method in class:StaggeredGridLayoutManager.LayoutParams
2041 public LayoutParams(int width, int height) { method in class:StaggeredGridLayoutManager.LayoutParams
2045 public LayoutParams(ViewGroup.MarginLayoutParams source) { method in class:StaggeredGridLayoutManager.LayoutParams
2049 public LayoutParams(ViewGroup.LayoutParams source) { method in class:StaggeredGridLayoutManager.LayoutParams
2053 public LayoutParams(RecyclerView.LayoutParams source) { method in class:StaggeredGridLayoutManager.LayoutParams
[all...]
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
H A DKeyguardServiceDelegate.java339 int flags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
340 | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR
341 | WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN
342 | WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER
345 final int stretch = ViewGroup.LayoutParams.MATCH_PARENT;
346 final int type = WindowManager.LayoutParams.TYPE_KEYGUARD_SCRIM;
347 WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
349 lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE;
351 lp.privateFlags |= WindowManager.LayoutParams
[all...]
/frameworks/support/percent/src/android/support/percent/
H A DPercentLayoutHelper.java38 * <li> You need a {@link ViewGroup.LayoutParams} subclass in your ViewGroup that implements
40 * <li> In your {@code LayoutParams(Context c, AttributeSet attrs)} constructor create an instance
46 * {@link ViewGroup.LayoutParams#setBaseAttributes(TypedArray, int, int)}
50 * your LayoutParams.
82 * Helper method to be called from {@link ViewGroup.LayoutParams#setBaseAttributes} override
86 public static void fetchWidthAndHeight(ViewGroup.LayoutParams params, TypedArray array,
108 ViewGroup.LayoutParams params = view.getLayoutParams();
132 * {@code LayoutParams(Context c, AttributeSet attrs)} constructor.
235 ViewGroup.LayoutParams params = view.getLayoutParams();
274 ViewGroup.LayoutParams param
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java444 public RecyclerView.LayoutParams generateDefaultLayoutParams() {
445 return new RecyclerView.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
446 ViewGroup.LayoutParams.WRAP_CONTENT);
454 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) view.getLayoutParams();
467 RecyclerView.LayoutParams getLp(View v) {
468 return (RecyclerView.LayoutParams) v.getLayoutParams();
486 RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) vie
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DLoadAverageService.java290 WindowManager.LayoutParams params = new WindowManager.LayoutParams(
291 WindowManager.LayoutParams.MATCH_PARENT,
292 WindowManager.LayoutParams.WRAP_CONTENT,
293 WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY,
294 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE|
295 WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGradientsActivity.java69 layout.addView(gradientView, new FrameLayout.LayoutParams(
72 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER);
76 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER);
80 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER);
84 layout.addView(rotateView, new FrameLayout.LayoutParams(
85 300, FrameLayout.LayoutParams.WRAP_CONTENT,
/frameworks/base/core/java/com/android/internal/widget/
H A DToolbarWidgetWrapper.java140 final ViewGroup.LayoutParams lp = mToolbar.getLayoutParams();
449 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams();
450 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT;
451 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
511 Toolbar.LayoutParams lp = (Toolbar.LayoutParams) mTabView.getLayoutParams();
512 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT;
513 lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
526 Toolbar.LayoutParams l
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSDualTileLabel.java92 private static LayoutParams newLinearLayoutParams() {
93 final LayoutParams lp =
94 new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DMonthAdapter.java24 import android.widget.AbsListView.LayoutParams;
180 LayoutParams params = new LayoutParams(
181 LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DSystemBarHelperTest.java36 import android.view.ViewGroup.LayoutParams;
119 final WindowManager.LayoutParams attrs = dialog.getWindow().getAttributes();
163 WindowManager.LayoutParams attrs = window.getAttributes();
205 public void setContentView(View view, LayoutParams layoutParams) {
210 public void addContentView(View view, LayoutParams layoutParams) {
/frameworks/base/core/java/android/app/
H A DDialog.java56 import android.view.ViewGroup.LayoutParams;
78 * do this by setting the {@link WindowManager.LayoutParams#FLAG_ALT_FOCUSABLE_IM
79 * WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM} window flag (assuming
83 * getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
84 * WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);</pre>
308 WindowManager.LayoutParams l = mWindow.getAttributes();
310 & WindowManager.LayoutParams.SOFT_INPUT_IS_FORWARD_NAVIGATION) == 0) {
311 WindowManager.LayoutParams nl = new WindowManager.LayoutParams();
314 WindowManager.LayoutParams
[all...]
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
H A DPresenterTest.java24 import android.view.ViewGroup.LayoutParams;
93 LayoutParams.WRAP_CONTENT);
96 LayoutParams.WRAP_CONTENT);

Completed in 518 milliseconds

1234567891011>>