Searched refs:LayoutParams (Results 1 - 25 of 390) sorted by relevance

1234567891011>>

/frameworks/base/tools/layoutlib/create/tests/mock_data/mock_android/view/
H A DViewGroup.java21 public class MarginLayoutParams extends LayoutParams {
25 public class LayoutParams { class in class:ViewGroup
/frameworks/base/core/java/android/view/
H A DWindowManager.aidl20 parcelable WindowManager.LayoutParams;
H A DViewManager.java25 * Assign the passed LayoutParams to the passed View and add the view to the window.
32 * @param params The LayoutParams to assign to view.
34 public void addView(View view, ViewGroup.LayoutParams params);
35 public void updateViewLayout(View view, ViewGroup.LayoutParams params);
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DDelayedTransition.java25 import static android.widget.LinearLayout.LayoutParams;
49 button1.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,
50 LayoutParams.WRAP_CONTENT));
52 button2.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
53 LayoutParams.MATCH_PARENT));
56 button1.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
57 LayoutParams
[all...]
/frameworks/base/tools/layoutlib/create/tests/mock_data/mock_android/widget/
H A DTableLayout.java23 public class LayoutParams extends MarginLayoutParams { class in class:TableLayout
H A DLinearLayout.java25 public class LayoutParams extends MarginLayoutParams { class in class:LinearLayout
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGlyphCacheActivity.java27 import static android.widget.LinearLayout.LayoutParams;
40 scrollView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,
41 ViewGroup.LayoutParams.MATCH_PARENT));
44 layout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
45 ViewGroup.LayoutParams.WRAP_CONTENT));
59 textview.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
60 ViewGroup.LayoutParams
[all...]
H A DMultiLayersActivity.java38 grid.addView(row1, new LinearLayout.LayoutParams(
39 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f));
43 grid.addView(row2, new LinearLayout.LayoutParams(
44 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f));
46 row1.addView(new LayerView(this, 0xffff0000), new LinearLayout.LayoutParams(
47 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f));
48 row1.addView(new LayerView(this, 0x0f00ff00), new LinearLayout.LayoutParams(
49 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f));
51 row2.addView(new LayerView(this, 0x0f0000ff), new LinearLayout.LayoutParams(
52 0, LinearLayout.LayoutParams
[all...]
H A DNinePatchesActivity.java33 b.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT,
34 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER));
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DGoneParentFocusedChild.java60 mLayout.setLayoutParams(new ViewGroup.LayoutParams(
61 ViewGroup.LayoutParams.MATCH_PARENT,
62 ViewGroup.LayoutParams.MATCH_PARENT));
67 mGoneGroup.setLayoutParams(new ViewGroup.LayoutParams(
68 ViewGroup.LayoutParams.MATCH_PARENT,
69 ViewGroup.LayoutParams.MATCH_PARENT));
72 mButton.setLayoutParams(new LinearLayout.LayoutParams(
73 ViewGroup.LayoutParams.WRAP_CONTENT,
74 ViewGroup.LayoutParams.WRAP_CONTENT));
H A DListOfEditTexts.java47 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams(
48 ViewGroup.LayoutParams.MATCH_PARENT,
49 ViewGroup.LayoutParams.MATCH_PARENT));
54 new LinearLayout.LayoutParams(
55 ViewGroup.LayoutParams.MATCH_PARENT,
56 ViewGroup.LayoutParams.WRAP_CONTENT));
62 mListView.setLayoutParams(new ViewGroup.LayoutParams(
63 ViewGroup.LayoutParams.MATCH_PARENT,
64 ViewGroup.LayoutParams.MATCH_PARENT));
67 mListView.setLayoutParams((new LinearLayout.LayoutParams(
[all...]
H A DHorizontalFocusSearch.java63 mLayout.setLayoutParams(new ViewGroup.LayoutParams(
64 ViewGroup.LayoutParams.MATCH_PARENT,
65 ViewGroup.LayoutParams.MATCH_PARENT));
96 button.setLayoutParams(new LinearLayout.LayoutParams(
97 ViewGroup.LayoutParams.WRAP_CONTENT,
98 ViewGroup.LayoutParams.MATCH_PARENT));
105 button.setLayoutParams(new LinearLayout.LayoutParams(
106 ViewGroup.LayoutParams.WRAP_CONTENT,
112 filler.setLayoutParams(new LinearLayout.LayoutParams(
113 ViewGroup.LayoutParams
[all...]
H A DVerticalFocusSearch.java70 mLayout.setLayoutParams(new ViewGroup.LayoutParams(
71 ViewGroup.LayoutParams.MATCH_PARENT,
72 ViewGroup.LayoutParams.MATCH_PARENT));
104 button.setLayoutParams(new LinearLayout.LayoutParams(
105 ViewGroup.LayoutParams.MATCH_PARENT,
106 ViewGroup.LayoutParams.WRAP_CONTENT));
121 button.setLayoutParams(new LinearLayout.LayoutParams(
123 ViewGroup.LayoutParams.WRAP_CONTENT,
128 filler.setLayoutParams(new LinearLayout.LayoutParams(
130 ViewGroup.LayoutParams
[all...]
/frameworks/base/core/java/android/widget/
H A DAbsoluteLayout.java75 AbsoluteLayout.LayoutParams lp
76 = (AbsoluteLayout.LayoutParams) child.getLayoutParams();
100 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT},
101 * a height of {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
105 protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
106 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0, 0);
118 AbsoluteLayout.LayoutParams lp =
119 (AbsoluteLayout.LayoutParams) chil
158 public static class LayoutParams extends ViewGroup.LayoutParams { class in class:AbsoluteLayout
179 public LayoutParams(int width, int height, int x, int y) { method in class:AbsoluteLayout.LayoutParams
201 public LayoutParams(Context c, AttributeSet attrs) { method in class:AbsoluteLayout.LayoutParams
215 public LayoutParams(ViewGroup.LayoutParams source) { method in class:AbsoluteLayout.LayoutParams
[all...]
H A DTableRow.java40 * {@link android.widget.TableLayout.LayoutParams#MATCH_PARENT} and
41 * {@link android.widget.TableLayout.LayoutParams#WRAP_CONTENT}.</p>
44 * Also see {@link TableRow.LayoutParams android.widget.TableRow.LayoutParams}
164 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams();
195 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
227 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth;
236 lp.mOffset[LayoutParams
402 public static class LayoutParams extends LinearLayout.LayoutParams { class in class:TableRow
423 public LayoutParams(Context c, AttributeSet attrs) { method in class:TableRow.LayoutParams
445 public LayoutParams(int w, int h) { method in class:TableRow.LayoutParams
458 public LayoutParams(int w, int h, float initWeight) { method in class:TableRow.LayoutParams
469 public LayoutParams() { method in class:TableRow.LayoutParams
484 public LayoutParams(int column) { method in class:TableRow.LayoutParams
492 public LayoutParams(ViewGroup.LayoutParams p) { method in class:TableRow.LayoutParams
499 public LayoutParams(MarginLayoutParams source) { method in class:TableRow.LayoutParams
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DNoSaveStateFrameLayout.java33 ViewGroup.LayoutParams childParams = child.getLayoutParams();
37 NoSaveStateFrameLayout.LayoutParams lp = new NoSaveStateFrameLayout.LayoutParams(
38 ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeBackgroundService.java77 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
79 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
80 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
81 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
82 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
83 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
84 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
85 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
86 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED
87 | WindowManager.LayoutParams
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemISVAndButton.java49 isv.setLayoutParams(new LinearLayout.LayoutParams(
50 ViewGroup.LayoutParams.MATCH_PARENT,
54 final LinearLayout.LayoutParams buttonLp =
55 new LinearLayout.LayoutParams(
56 ViewGroup.LayoutParams.MATCH_PARENT,
65 filler.setLayoutParams(new LinearLayout.LayoutParams(
66 ViewGroup.LayoutParams.MATCH_PARENT,
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
H A DBigEditTextActivityScrollablePanScan.java39 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
43 mRootView.setLayoutParams(new ViewGroup.LayoutParams(
44 ViewGroup.LayoutParams.MATCH_PARENT,
45 ViewGroup.LayoutParams.MATCH_PARENT));
49 mLayout.setLayoutParams(new ViewGroup.LayoutParams(
50 ViewGroup.LayoutParams.MATCH_PARENT,
51 ViewGroup.LayoutParams.MATCH_PARENT));
H A DBigEditTextActivityScrollableResize.java39 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
43 mRootView.setLayoutParams(new ViewGroup.LayoutParams(
44 ViewGroup.LayoutParams.MATCH_PARENT,
45 ViewGroup.LayoutParams.MATCH_PARENT));
49 mLayout.setLayoutParams(new ViewGroup.LayoutParams(
50 ViewGroup.LayoutParams.MATCH_PARENT,
51 ViewGroup.LayoutParams.MATCH_PARENT));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarWindowManager.java41 private WindowManager.LayoutParams mLp;
42 private WindowManager.LayoutParams mLpChanged;
71 mLp = new WindowManager.LayoutParams(
72 ViewGroup.LayoutParams.MATCH_PARENT,
74 WindowManager.LayoutParams.TYPE_STATUS_BAR,
75 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
76 | WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING
77 | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH
78 | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
79 | WindowManager.LayoutParams
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DSizeAdaptiveLayoutTest.java81 SizeAdaptiveLayout.LayoutParams lp =
82 (SizeAdaptiveLayout.LayoutParams) mLargeView.getLayoutParams();
98 SizeAdaptiveLayout.LayoutParams lp =
99 (SizeAdaptiveLayout.LayoutParams) mSmallView.getLayoutParams();
115 SizeAdaptiveLayout.LayoutParams lp =
116 (SizeAdaptiveLayout.LayoutParams) mSmallView.getLayoutParams();
132 SizeAdaptiveLayout.LayoutParams lp =
133 (SizeAdaptiveLayout.LayoutParams) mLargeView.getLayoutParams();
151 SizeAdaptiveLayout.LayoutParams lp =
152 (SizeAdaptiveLayout.LayoutParams) mLargeVie
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DCreateViewTest.java24 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
25 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
48 new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0));
56 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0));
59 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0));
62 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0));
65 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0));
68 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0));
71 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0));
86 vert.addView(text, new LinearLayout.LayoutParams(MATCH_PAREN
[all...]
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
H A DLinearLayoutTest.java23 import android.widget.LinearLayout.LayoutParams;
25 import static android.widget.LinearLayout.LayoutParams.WRAP_CONTENT;
36 LayoutParams lp = new LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DOrientationHelper.java217 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams)
225 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams)
233 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams)
240 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams)
293 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams)
[all...]

Completed in 7723 milliseconds

1234567891011>>