Searched refs:layout (Results 26 - 50 of 367) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/view/
H A DInflateTest.java44 // do an initial instantiation of the layout and then clear
45 // out the layout cache.
64 // Make sure this layout is in the cache.
72 inflateTest(R.layout.layout_one);
77 inflateTest(R.layout.layout_two);
82 inflateTest(R.layout.layout_three);
87 inflateTest(R.layout.layout_four);
92 inflateTest(R.layout.layout_five);
97 inflateTest(R.layout.layout_six);
102 inflateCachedTest(R.layout
[all...]
H A DMutateDrawable.java30 LinearLayout layout = new LinearLayout(this);
42 layout.addView(ok);
43 layout.addView(cancel);
47 setContentView(layout);
H A DMergeTest.java38 final ViewGroup layout = activity.getLayout();
40 assertEquals("The layout wasn't merged", 7, layout.getChildCount());
H A DInclude.java31 setContentView(R.layout.include_tag);
H A DLongpress.java29 setContentView(R.layout.longpress);
H A DRemoteViewsActivity.java31 setContentView(R.layout.remote_view_host);
H A DViewAttachTestActivity.java29 setContentView(R.layout.attach_view_test);
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DBaselineAlignmentZeroWidthAndWeight.java17 package android.widget.layout.linear;
29 setContentView(R.layout.baseline_0width_and_weight);
33 findViewById(R.id.layout).setVisibility(View.VISIBLE);
H A DFillInWrap.java17 package android.widget.layout.linear;
29 setContentView(R.layout.fill_in_wrap);
H A DLLEditTextThenButton.java17 package android.widget.layout.linear;
37 setContentView(R.layout.linear_layout_edittext_then_button);
39 mLayout = (LinearLayout) findViewById(R.id.layout);
H A DLLOfButtons1.java17 package android.widget.layout.linear;
39 setContentView(R.layout.linear_layout_buttons);
51 return (LinearLayout) findViewById(R.id.layout);
H A DLinearLayoutEditTextsTest.java17 package android.widget.layout.linear;
19 import android.widget.layout.linear.LinearLayoutEditTexts;
41 mContainer = activity.findViewById(R.id.layout);
H A DWeightTest.java17 package android.widget.layout.linear;
26 import android.widget.layout.linear.Weight;
42 mContainer = activity.findViewById(R.id.layout);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DSimplePathsActivity.java31 FrameLayout layout = new FrameLayout(this);
33 layout.addView(text, new FrameLayout.LayoutParams(600, 350, Gravity.CENTER));
38 setContentView(layout);
H A DViewFlipperActivity.java36 final View widget = inflater.inflate(R.layout.widget, null);
41 View view = inflater.inflate(R.layout.flipper_item, flipper, false);
47 view = inflater.inflate(R.layout.flipper_item, flipper, false);
53 FrameLayout layout = new FrameLayout(this);
54 layout.addView(widget);
56 setContentView(layout);
H A DSmallCircleActivity.java34 final LinearLayout layout = new LinearLayout(this);
35 layout.setOrientation(LinearLayout.VERTICAL);
38 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE));
41 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE));
43 setContentView(layout);
H A DTimeDialogActivity.java33 FrameLayout layout = new FrameLayout(this);
44 layout.addView(b);
46 setContentView(layout);
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
H A DManyEditTextActivityScrollResize.java42 LinearLayout layout = new LinearLayout(this);
43 layout.setOrientation(LinearLayout.VERTICAL);
50 layout.addView(editText);
53 ((ScrollView) mRootView).addView(layout);
H A DButtonActivity.java68 LinearLayout layout = new LinearLayout(this);
69 layout.setOrientation(LinearLayout.VERTICAL);
70 layout.addView(myButton);
71 setContentView(layout);
72 mRootView = layout;
H A DOneEditTextActivityNotSelected.java48 LinearLayout layout = new LinearLayout(this);
49 layout.setOrientation(LinearLayout.VERTICAL);
58 layout.addView(button);
59 layout.addView(editText);
61 ((ScrollView) mRootView).addView(layout);
H A DEditTextActivityDialog.java89 View layout;
93 layout = new ScrollView(EditTextActivityDialog.this);
94 ((ScrollView) layout).setMinimumHeight(mLayout.getHeight());
96 ((ScrollView) layout).addView((
98 R.layout.dialog_edit_text_no_scroll, null));
100 layout = View.inflate(EditTextActivityDialog.this,
101 R.layout.dialog_edit_text_no_scroll, null);
107 d.setContentView(layout);
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { argument
39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer)));
70 final Layout layout = widget.getLayout();
72 return Selection.extendLeft(buffer, layout);
74 return Selection.moveLeft(buffer, layout);
80 final Layout layout = widget.getLayout();
82 return Selection.extendRight(buffer, layout);
84 return Selection.moveRight(buffer, layout);
90 final Layout layout
[all...]
H A DBaseMovementMethod.java423 final Layout layout = widget.getLayout();
431 final int lineLeft = (int) Math.floor(layout.getLineLeft(line));
440 final Layout layout = widget.getLayout();
448 final int lineRight = (int) Math.ceil(layout.getLineRight(line));
509 final Layout layout = widget.getLayout();
511 int topLine = layout.getLineForVertical(top);
512 if (layout.getLineTop(topLine) == top) {
519 Touch.scrollTo(widget, layout, widget.getScrollX(), layout.getLineTop(topLine));
536 final Layout layout
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DDialogTitle.java49 final Layout layout = getLayout();
50 if (layout != null) {
51 final int lineCount = layout.getLineCount();
53 final int ellipsisCount = layout.getEllipsisCount(lineCount - 1);
/frameworks/base/core/tests/coretests/src/android/animation/
H A DBasicAnimatorActivity.java27 setContentView(R.layout.animator_basic);

Completed in 436 milliseconds

1234567891011>>