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

1234567891011

/frameworks/base/tools/layoutlib/create/tests/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/tools/layoutlib/create/tests/mock_android/widget/
H A DLinearLayout.java23 public class LayoutParams extends mock_android.view.ViewGroup.LayoutParams { class in class:LinearLayout
H A DTableLayout.java23 public class LayoutParams extends MarginLayoutParams { class in class:TableLayout
/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...]
H A DAdjacentVerticalRectLists.java68 mLayout.setLayoutParams(new ViewGroup.LayoutParams(
69 ViewGroup.LayoutParams.MATCH_PARENT,
70 ViewGroup.LayoutParams.MATCH_PARENT));
72 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0,
73 ViewGroup.LayoutParams.MATCH_PARENT, 1);
/frameworks/base/core/java/android/widget/
H A DAbsoluteLayout.java72 AbsoluteLayout.LayoutParams lp
73 = (AbsoluteLayout.LayoutParams) child.getLayoutParams();
97 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT},
98 * a height of {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
102 protected ViewGroup.LayoutParams generateDefaultLayoutParams() {
103 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0, 0);
115 AbsoluteLayout.LayoutParams lp =
116 (AbsoluteLayout.LayoutParams) chil
155 public static class LayoutParams extends ViewGroup.LayoutParams { class in class:AbsoluteLayout
176 public LayoutParams(int width, int height, int x, int y) { method in class:AbsoluteLayout.LayoutParams
198 public LayoutParams(Context c, AttributeSet attrs) { method in class:AbsoluteLayout.LayoutParams
212 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/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...]
H A DBigCache.java41 testBed.setLayoutParams(new ViewGroup.LayoutParams(
42 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
52 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight));
59 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height));
62 scroller.setLayoutParams(new ViewGroup.LayoutParams(
63 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
/frameworks/base/core/tests/coretests/src/android/app/
H A DTranslucentFancyActivity.java62 getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
63 WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
/frameworks/base/core/tests/coretests/src/android/util/
H A DListItemFactory.java51 final LinearLayout.LayoutParams buttonLp =
52 new LinearLayout.LayoutParams(
53 ViewGroup.LayoutParams.MATCH_PARENT,
63 middleFiller.setLayoutParams(new LinearLayout.LayoutParams(
64 ViewGroup.LayoutParams.MATCH_PARENT,
96 final LinearLayout.LayoutParams lp
97 = new LinearLayout.LayoutParams(0, desiredHeight);
159 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams(
160 ViewGroup.LayoutParams
[all...]

Completed in 1521 milliseconds

1234567891011