Searched refs:LayoutParams (Results 151 - 175 of 691) sorted by relevance

1234567891011>>

/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DActionBarDisplayOptions.java26 import android.view.ViewGroup.LayoutParams;
37 private ActionBar.LayoutParams mCustomViewLayoutParams;
54 mCustomViewLayoutParams = new ActionBar.LayoutParams(
55 LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
100 ActionBar.LayoutParams lp = mCustomViewLayoutParams;
H A DToolbarDisplayOptions.java28 import android.view.ViewGroup.LayoutParams;
38 private ActionBar.LayoutParams mCustomViewLayoutParams;
58 mCustomViewLayoutParams = new ActionBar.LayoutParams(
59 LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
96 ActionBar.LayoutParams lp = mCustomViewLayoutParams;
H A DToolbarFragmentPagerMenu.java110 textView.setLayoutParams(new ViewGroup.LayoutParams(
111 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
152 textView.setLayoutParams(new ViewGroup.LayoutParams(
153 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/
H A DSimpleStringAdapter.java84 RecyclerView.LayoutParams lp = getLayoutParams();
99 * Returns LayoutParams to be used for each item in this adapter. It can be overridden
100 * to provide different LayoutParams.
101 * @return LayoutParams to be used for each item in this adapter.
103 public RecyclerView.LayoutParams getLayoutParams() {
104 RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(
105 ViewGroup.LayoutParams.WRAP_CONTENT,
106 ViewGroup.LayoutParams.WRAP_CONTENT);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DActionBarDisplayOptions.java26 import android.view.ViewGroup.LayoutParams;
37 private ActionBar.LayoutParams mCustomViewLayoutParams;
54 mCustomViewLayoutParams = new ActionBar.LayoutParams(
55 LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
100 ActionBar.LayoutParams lp = mCustomViewLayoutParams;
H A DToolbarDisplayOptions.java28 import android.view.ViewGroup.LayoutParams;
38 private ActionBar.LayoutParams mCustomViewLayoutParams;
58 mCustomViewLayoutParams = new ActionBar.LayoutParams(
59 LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
96 ActionBar.LayoutParams lp = mCustomViewLayoutParams;
H A DToolbarFragmentPagerMenu.java110 textView.setLayoutParams(new ViewGroup.LayoutParams(
111 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
152 textView.setLayoutParams(new ViewGroup.LayoutParams(
153 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/
H A DSimpleStringAdapter.java84 RecyclerView.LayoutParams lp = getLayoutParams();
99 * Returns LayoutParams to be used for each item in this adapter. It can be overridden
100 * to provide different LayoutParams.
101 * @return LayoutParams to be used for each item in this adapter.
103 public RecyclerView.LayoutParams getLayoutParams() {
104 RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(
105 ViewGroup.LayoutParams.WRAP_CONTENT,
106 ViewGroup.LayoutParams.WRAP_CONTENT);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionBarOverlayLayout.java264 LayoutParams lp = (LayoutParams)view.getLayoutParams();
318 protected LayoutParams generateDefaultLayoutParams() {
319 return new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
323 public LayoutParams generateLayoutParams(AttributeSet attrs) {
324 return new LayoutParams(getContext(), attrs);
328 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams
741 public static class LayoutParams extends MarginLayoutParams { class in class:ActionBarOverlayLayout
742 public LayoutParams(Context c, AttributeSet attrs) { method in class:ActionBarOverlayLayout.LayoutParams
746 public LayoutParams(int width, int height) { method in class:ActionBarOverlayLayout.LayoutParams
750 public LayoutParams(ViewGroup.LayoutParams source) { method in class:ActionBarOverlayLayout.LayoutParams
754 public LayoutParams(ViewGroup.MarginLayoutParams source) { method in class:ActionBarOverlayLayout.LayoutParams
[all...]
/frameworks/base/core/java/android/widget/
H A DRelativeLayout.java53 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT WRAP_CONTENT} and a child set to
76 * Also see {@link android.widget.RelativeLayout.LayoutParams RelativeLayout.LayoutParams} for
457 LayoutParams params = (LayoutParams) child.getLayoutParams();
476 final LayoutParams params = (LayoutParams) child.getLayoutParams();
523 LayoutParams baselineParams = null;
527 final LayoutParams childParams = (LayoutParams) chil
1215 public static class LayoutParams extends ViewGroup.MarginLayoutParams { class in class:RelativeLayout
1265 public LayoutParams(Context c, AttributeSet attrs) { method in class:RelativeLayout.LayoutParams
1360 public LayoutParams(int w, int h) { method in class:RelativeLayout.LayoutParams
1367 public LayoutParams(ViewGroup.LayoutParams source) { method in class:RelativeLayout.LayoutParams
1374 public LayoutParams(ViewGroup.MarginLayoutParams source) { method in class:RelativeLayout.LayoutParams
1384 public LayoutParams(LayoutParams source) { method in class:RelativeLayout.LayoutParams
[all...]
/frameworks/base/core/java/android/view/
H A DWindow.java19 import static android.view.WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
309 private final WindowManager.LayoutParams mWindowAttributes =
310 new WindowManager.LayoutParams();
461 public void onWindowAttributesChanged(WindowManager.LayoutParams attrs);
466 * {@link Window#setContentView(View, android.view.ViewGroup.LayoutParams)
468 * {@link Window#addContentView(View, android.view.ViewGroup.LayoutParams)
772 void adjustLayoutParamsForSubWindow(WindowManager.LayoutParams wp) {
774 if (wp.type >= WindowManager.LayoutParams.FIRST_SUB_WINDOW &&
775 wp.type <= WindowManager.LayoutParams.LAST_SUB_WINDOW) {
784 if (wp.type == WindowManager.LayoutParams
[all...]
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOcquarium.java43 bg.addView(mImageView, new FrameLayout.LayoutParams(
44 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
H A DAssistManager.java132 WindowManager.LayoutParams lp = getLayoutParams();
163 private WindowManager.LayoutParams getLayoutParams() {
164 WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
165 ViewGroup.LayoutParams.MATCH_PARENT,
167 WindowManager.LayoutParams.TYPE_VOICE_INTERACTION_STARTING,
168 WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
169 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
170 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
174 lp.flags |= WindowManager.LayoutParams
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DLaunchWarningWindow.java34 getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
35 getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
36 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);
H A DUserSwitchingDialog.java84 getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
86 WindowManager.LayoutParams attrs = getWindow().getAttributes();
87 attrs.privateFlags = WindowManager.LayoutParams.PRIVATE_FLAG_SYSTEM_ERROR |
88 WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS;
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/
H A DUserInactivityCountdownDialog.java40 getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
41 WindowManager.LayoutParams attrs = getWindow().getAttributes();
42 attrs.privateFlags = WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMoreNinePatchesActivity.java37 b.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT,
38 FrameLayout.LayoutParams.MATCH_PARENT, Gravity.CENTER));
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
H A DDialogActivity.java48 mLayout.setLayoutParams(new ViewGroup.LayoutParams(
49 ViewGroup.LayoutParams.MATCH_PARENT,
50 ViewGroup.LayoutParams.MATCH_PARENT));
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DGlTextureViewActivity.java43 setContentView(mTextureView, new FrameLayout.LayoutParams(
44 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,
/frameworks/support/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
H A DReparentImageUsage.java67 FrameLayout.LayoutParams.MATCH_PARENT);
78 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(size, size);
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
H A DReparentImageUsage.java67 FrameLayout.LayoutParams.MATCH_PARENT);
78 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(size, size);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DTestActivity.java48 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
49 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
51 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
/frameworks/base/core/java/android/content/
H A DSyncActivityTooManyDeletes.java86 final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
87 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, 0);
/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DVirtualDisplayTest.java38 import android.view.ViewGroup.LayoutParams;
124 WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION, 0);
148 WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION, 0);
180 WindowManager.LayoutParams.TYPE_TOAST, 0);
187 WindowManager.LayoutParams.TYPE_TOAST,
188 WindowManager.LayoutParams.FLAG_SECURE);
194 WindowManager.LayoutParams.TYPE_TOAST, 0);
200 WindowManager.LayoutParams.TYPE_TOAST,
201 WindowManager.LayoutParams.FLAG_SECURE);
234 WindowManager.LayoutParams
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java317 mListView.setLayoutParams(new ViewGroup.LayoutParams(
318 ViewGroup.LayoutParams.MATCH_PARENT,
319 ViewGroup.LayoutParams.MATCH_PARENT));
377 mHeaderTextView.setLayoutParams(new LinearLayout.LayoutParams(
378 ViewGroup.LayoutParams.MATCH_PARENT,
379 ViewGroup.LayoutParams.WRAP_CONTENT));
383 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams(
384 ViewGroup.LayoutParams.MATCH_PARENT,
385 ViewGroup.LayoutParams.MATCH_PARENT));
386 mListView.setLayoutParams((new LinearLayout.LayoutParams(
[all...]

Completed in 457 milliseconds

1234567891011>>