Home
last modified time | relevance | path

Searched refs:RelativeLayout (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DSurfaceViewAlphaActivity.java29 import android.widget.RelativeLayout;
65 RelativeLayout overlapLayout = new RelativeLayout(this); in overlapViews()
67 RelativeLayout.LayoutParams leftViewLayoutParams = new RelativeLayout.LayoutParams( in overlapViews()
69 leftViewLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT); in overlapViews()
75 RelativeLayout.LayoutParams sVLayoutParams = new RelativeLayout.LayoutParams( in overlapViews()
77 sVLayoutParams.addRule(RelativeLayout.CENTER_IN_PARENT); in overlapViews()
80 RelativeLayout.LayoutParams rightViewLayoutParams = new RelativeLayout.LayoutParams( in overlapViews()
82 rightViewLayoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); in overlapViews()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java53 import android.widget.RelativeLayout;
135 private RelativeLayout mSysUiRoot;
194 mSysUiRoot = new RelativeLayout(builder.mContext); in Layout()
233 RelativeLayout.LayoutParams params = createSysUiLayoutParams(MATCH_PARENT, MATCH_PARENT); in createContentFrame()
234 int rule = mBuilder.isNavBarVertical() ? RelativeLayout.START_OF : RelativeLayout.ABOVE; in createContentFrame()
247 params.addRule(RelativeLayout.BELOW, below); in createContentFrame()
255 private RelativeLayout.LayoutParams createSysUiLayoutParams(int width, int height) { in createSysUiLayoutParams()
263 return new RelativeLayout.LayoutParams(width, height); in createSysUiLayoutParams()
292 RelativeLayout.LayoutParams params = createSysUiLayoutParams(MATCH_PARENT, mBuilder in createStatusBar()
295 params.addRule(RelativeLayout.START_OF, getId(ID_NAV_BAR)); in createStatusBar()
[all …]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DHitRectBug.java29 import android.widget.RelativeLayout;
40 public static class TestDrawingView extends RelativeLayout
73 RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(128, 128); in TestDrawingView()
74 params.addRule(RelativeLayout.CENTER_IN_PARENT); in TestDrawingView()
DInstanceTargets.java26 import static android.widget.RelativeLayout.ALIGN_PARENT_LEFT;
27 import static android.widget.RelativeLayout.ALIGN_PARENT_RIGHT;
28 import static android.widget.RelativeLayout.LayoutParams;
/frameworks/base/core/java/com/android/internal/widget/
DTextProgressBar.java28 import android.widget.RelativeLayout;
47 public class TextProgressBar extends RelativeLayout implements OnChronometerTickListener {
150 RelativeLayout.LayoutParams params; in onChronometerTick()
153 params = (RelativeLayout.LayoutParams) mProgressBar.getLayoutParams(); in onChronometerTick()
176 params = (RelativeLayout.LayoutParams) mChronometer.getLayoutParams(); in onChronometerTick()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DAlphaOptimizedRelativeLayout.java21 import android.widget.RelativeLayout;
27 public class AlphaOptimizedRelativeLayout extends RelativeLayout {
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java42 import android.widget.RelativeLayout;
145 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams( in createMenuPopup()
147 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_END); in createMenuPopup()
149 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); in createMenuPopup()
152 layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); in createMenuPopup()
DBridgeActionBar.java33 import android.widget.RelativeLayout;
74 mEnclosingLayout = new RelativeLayout(mBridgeContext); in BridgeActionBar()
/frameworks/base/core/java/android/widget/
DTimePickerClockDelegate.java454 final RelativeLayout.LayoutParams params =
455 (RelativeLayout.LayoutParams) mAmPmLayout.getLayoutParams();
456 if (params.getRule(RelativeLayout.RIGHT_OF) != 0
457 || params.getRule(RelativeLayout.LEFT_OF) != 0) {
468 params.removeRule(RelativeLayout.RIGHT_OF);
469 params.addRule(RelativeLayout.LEFT_OF, mHourView.getId());
471 params.removeRule(RelativeLayout.LEFT_OF);
472 params.addRule(RelativeLayout.RIGHT_OF, mMinuteView.getId());
483 } else if (params.getRule(RelativeLayout.BELOW) != 0
484 || params.getRule(RelativeLayout.ABOVE) != 0) {
[all …]
DRelativeLayout.java90 public class RelativeLayout extends ViewGroup { class
242 public RelativeLayout(Context context) { in RelativeLayout() method in RelativeLayout
246 public RelativeLayout(Context context, AttributeSet attrs) { in RelativeLayout() method in RelativeLayout
250 public RelativeLayout(Context context, AttributeSet attrs, int defStyleAttr) { in RelativeLayout() method in RelativeLayout
254 public RelativeLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in RelativeLayout() method in RelativeLayout
263 attrs, R.styleable.RelativeLayout, defStyleAttr, defStyleRes); in initFromAttributes()
264 saveAttributeDataForStyleable(context, R.styleable.RelativeLayout, in initFromAttributes()
908 RelativeLayout.LayoutParams anchorParams; in applyHorizontalSizeRules()
978 RelativeLayout.LayoutParams anchorParams; in applyVerticalSizeRules()
1101 RelativeLayout.LayoutParams st = in onLayout()
[all …]
DTwoLineListItem.java43 public class TwoLineListItem extends RelativeLayout {
/frameworks/base/packages/SoundPicker/src/com/android/soundpicker/
DCheckedListItem.java22 import android.widget.RelativeLayout;
30 public class CheckedListItem extends RelativeLayout implements Checkable {
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceActivity.java25 import android.widget.RelativeLayout;
37 private RelativeLayout mRootLayout;
135 mRootLayout = new RelativeLayout(this); in onCreate()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java652 RelativeLayout rootParent = new RelativeLayout(themedContext); in nestedViews_themesPropagateCorrectly()
663 RelativeLayout root = (RelativeLayout) top.apply(themedContext, rootParent); in nestedViews_themesPropagateCorrectly()
665 RelativeLayout.LayoutParams rootParams = in nestedViews_themesPropagateCorrectly()
666 (RelativeLayout.LayoutParams) root.getLayoutParams(); in nestedViews_themesPropagateCorrectly()
667 assertEquals(RelativeLayout.TRUE, in nestedViews_themesPropagateCorrectly()
668 rootParams.getRule(RelativeLayout.ALIGN_PARENT_BOTTOM)); in nestedViews_themesPropagateCorrectly()
673 RelativeLayout inner1View = (RelativeLayout) root.getChildAt(0); in nestedViews_themesPropagateCorrectly()
676 RelativeLayout.LayoutParams inner1Params = in nestedViews_themesPropagateCorrectly()
677 (RelativeLayout.LayoutParams) inner1View.getLayoutParams(); in nestedViews_themesPropagateCorrectly()
678 assertEquals(RelativeLayout.TRUE, in nestedViews_themesPropagateCorrectly()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutAppItemLayout.java23 import android.widget.RelativeLayout;
32 public class KeyboardShortcutAppItemLayout extends RelativeLayout {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java41 import android.widget.RelativeLayout;
68 public class KeyguardStatusBarView extends RelativeLayout {
339 RelativeLayout.LayoutParams lp = (LayoutParams) mCarrierLabel.getLayoutParams(); in updateLayoutParamsNoCutout()
340 lp.addRule(RelativeLayout.START_OF, R.id.status_icon_area); in updateLayoutParamsNoCutout()
343 lp.removeRule(RelativeLayout.RIGHT_OF); in updateLayoutParamsNoCutout()
364 RelativeLayout.LayoutParams lp = (LayoutParams) mCutoutSpace.getLayoutParams(); in updateLayoutParamsForCutout()
369 lp.addRule(RelativeLayout.CENTER_IN_PARENT); in updateLayoutParamsForCutout()
372 lp.addRule(RelativeLayout.START_OF, R.id.cutout_space_view); in updateLayoutParamsForCutout()
375 lp.addRule(RelativeLayout.RIGHT_OF, R.id.cutout_space_view); in updateLayoutParamsForCutout()
/frameworks/base/core/tests/coretests/src/android/view/
DDrawableBgMinSizeTest.java26 import android.widget.RelativeLayout;
46 private RelativeLayout mRelativeLayout;
65 mRelativeLayout = (RelativeLayout) a.findViewById(R.id.relative_layout); in setUp()
DDrawableBgMinSize.java27 import android.widget.RelativeLayout;
47 private RelativeLayout mRelativeLayout;
/frameworks/base/core/java/com/android/internal/app/
DBilingualSuggestedLocaleAdapter.java24 import android.widget.RelativeLayout;
135 RelativeLayout background = (RelativeLayout) itemView; in setItemState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTvWindowMenuActionButton.java28 import android.widget.RelativeLayout;
35 public class TvWindowMenuActionButton extends RelativeLayout {
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DReverseLinearLayout.java24 import android.widget.RelativeLayout;
127 public static class ReverseRelativeLayout extends RelativeLayout implements Reversable {
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DReverseLinearLayout.java26 import android.widget.RelativeLayout;
129 public static class ReverseRelativeLayout extends RelativeLayout implements Reversible {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DViewHierarchyAnimatorTest.kt8 import android.widget.RelativeLayout
1537 val firstChild = RelativeLayout(mContext) in setUpRootWithChildren()
1566 firstGrandChild.layoutParams = RelativeLayout.LayoutParams(40 /* width */, 40 /* height */) in setUpRootWithChildren()
1567 (firstGrandChild.layoutParams as RelativeLayout.LayoutParams) in setUpRootWithChildren()
1568 .addRule(RelativeLayout.ALIGN_PARENT_START) in setUpRootWithChildren()
1569 (firstGrandChild.layoutParams as RelativeLayout.LayoutParams) in setUpRootWithChildren()
1570 .addRule(RelativeLayout.ALIGN_PARENT_TOP) in setUpRootWithChildren()
1571 secondGrandChild.layoutParams = RelativeLayout.LayoutParams(40 /* width */, 40 /* height */) in setUpRootWithChildren()
1572 (secondGrandChild.layoutParams as RelativeLayout.LayoutParams) in setUpRootWithChildren()
1573 .addRule(RelativeLayout.ALIGN_PARENT_END) in setUpRootWithChildren()
[all …]
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java30 import android.widget.RelativeLayout;
46 public class NotificationHeaderView extends RelativeLayout {
/frameworks/base/services/core/java/com/android/server/wm/
DImmersiveModeConfirmation.java65 import android.widget.RelativeLayout;
414 RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) in onApplyWindowInsets()

12