Home
last modified time | relevance | path

Searched refs:RelativeLayout (Results 1 – 25 of 45) 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/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/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DSimpleDigitalHandLayerController.kt22 import android.widget.RelativeLayout
102 RelativeLayout.LayoutParams(
129 if (view.layoutParams is RelativeLayout.LayoutParams) { in applyLayout()
130 val lp = view.layoutParams as RelativeLayout.LayoutParams in applyLayout()
131 lp.addRule(RelativeLayout.TEXT_ALIGNMENT_CENTER) in applyLayout()
134 lp.addRule(RelativeLayout.CENTER_VERTICAL) in applyLayout()
135 lp.addRule(RelativeLayout.ALIGN_PARENT_START) in applyLayout()
138 lp.addRule(RelativeLayout.CENTER_VERTICAL) in applyLayout()
139 lp.addRule(RelativeLayout.END_OF, R.id.HOUR_DIGIT_PAIR) in applyLayout()
/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;
75 mEnclosingLayout = new RelativeLayout(mBridgeContext); in BridgeActionBar()
/frameworks/base/core/java/android/widget/
DTimePickerClockDelegate.java452 final RelativeLayout.LayoutParams params =
453 (RelativeLayout.LayoutParams) mAmPmLayout.getLayoutParams();
454 if (params.getRule(RelativeLayout.RIGHT_OF) != 0
455 || params.getRule(RelativeLayout.LEFT_OF) != 0) {
466 params.removeRule(RelativeLayout.RIGHT_OF);
467 params.addRule(RelativeLayout.LEFT_OF, mHourView.getId());
469 params.removeRule(RelativeLayout.LEFT_OF);
470 params.addRule(RelativeLayout.RIGHT_OF, mMinuteView.getId());
481 } else if (params.getRule(RelativeLayout.BELOW) != 0
482 || 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/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
DLayoutParserWrapperTest.java113 <RelativeLayout
145 </RelativeLayout>
151 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
184 </RelativeLayout>""";
/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/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.java40 import android.widget.RelativeLayout;
70 public class KeyguardStatusBarView extends RelativeLayout {
355 RelativeLayout.LayoutParams lp = (LayoutParams) mCarrierLabel.getLayoutParams(); in updateLayoutParamsNoCutout()
356 lp.addRule(RelativeLayout.START_OF, R.id.status_icon_area); in updateLayoutParamsNoCutout()
360 lp.removeRule(RelativeLayout.RIGHT_OF); in updateLayoutParamsNoCutout()
381 RelativeLayout.LayoutParams lp = (LayoutParams) mCutoutSpace.getLayoutParams(); in updateLayoutParamsForCutout()
386 lp.addRule(RelativeLayout.CENTER_IN_PARENT); in updateLayoutParamsForCutout()
389 lp.addRule(RelativeLayout.START_OF, R.id.cutout_space_view); in updateLayoutParamsForCutout()
393 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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DLayout.java58 import android.widget.RelativeLayout;
154 private final RelativeLayout mAppUiRoot;
216 mAppUiRoot = new RelativeLayout(builder.mContext); in Layout()
289 RelativeLayout.LayoutParams params = createAppUiLayoutParams(MATCH_PARENT, MATCH_PARENT); in createContentFrame()
307 params.addRule(RelativeLayout.BELOW, below); in createContentFrame()
316 private RelativeLayout.LayoutParams createAppUiLayoutParams(int width, int height) { in createAppUiLayoutParams()
324 return new RelativeLayout.LayoutParams(width, height); in createAppUiLayoutParams()
377 RelativeLayout.LayoutParams layoutParams = in createActionBar()
395 layoutParams.addRule(RelativeLayout.BELOW, getId(ID_FRAMEWORK_BAR)); in createActionBar()
417 RelativeLayout.LayoutParams params = in createTitleBar()
/frameworks/base/core/java/com/android/internal/app/
DBilingualSuggestedLocaleAdapter.java24 import android.widget.RelativeLayout;
135 RelativeLayout background = (RelativeLayout) itemView; in setItemState()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java708 RelativeLayout rootParent = new RelativeLayout(themedContext); in nestedViews_themesPropagateCorrectly()
719 RelativeLayout root = (RelativeLayout) top.apply(themedContext, rootParent); in nestedViews_themesPropagateCorrectly()
721 RelativeLayout.LayoutParams rootParams = in nestedViews_themesPropagateCorrectly()
722 (RelativeLayout.LayoutParams) root.getLayoutParams(); in nestedViews_themesPropagateCorrectly()
723 assertEquals(RelativeLayout.TRUE, in nestedViews_themesPropagateCorrectly()
724 rootParams.getRule(RelativeLayout.ALIGN_PARENT_BOTTOM)); in nestedViews_themesPropagateCorrectly()
729 RelativeLayout inner1View = (RelativeLayout) root.getChildAt(0); in nestedViews_themesPropagateCorrectly()
732 RelativeLayout.LayoutParams inner1Params = in nestedViews_themesPropagateCorrectly()
733 (RelativeLayout.LayoutParams) inner1View.getLayoutParams(); in nestedViews_themesPropagateCorrectly()
734 assertEquals(RelativeLayout.TRUE, in nestedViews_themesPropagateCorrectly()
[all …]
/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/views/buttons/
DReverseLinearLayout.java26 import android.widget.RelativeLayout;
129 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/multivalentTests/src/com/android/systemui/animation/
DViewHierarchyAnimatorTest.kt8 import android.widget.RelativeLayout
1576 val firstChild = RelativeLayout(mContext) in setUpRootWithChildren()
1601 firstGrandChild.layoutParams = RelativeLayout.LayoutParams(40 /* width */, 40 /* height */) in setUpRootWithChildren()
1602 (firstGrandChild.layoutParams as RelativeLayout.LayoutParams).addRule( in setUpRootWithChildren()
1603 RelativeLayout.ALIGN_PARENT_START in setUpRootWithChildren()
1605 (firstGrandChild.layoutParams as RelativeLayout.LayoutParams).addRule( in setUpRootWithChildren()
1606 RelativeLayout.ALIGN_PARENT_TOP in setUpRootWithChildren()
1608 secondGrandChild.layoutParams = RelativeLayout.LayoutParams(40 /* width */, 40 /* height */) in setUpRootWithChildren()
1609 (secondGrandChild.layoutParams as RelativeLayout.LayoutParams).addRule( in setUpRootWithChildren()
1610 RelativeLayout.ALIGN_PARENT_END in setUpRootWithChildren()
[all …]

12