OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:marginLayoutParams
(Results
1 - 4
of
4
) sorted by null
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
MarginLayoutParamsTest.java
21
ViewGroup.
MarginLayoutParams
marginLayoutParams
= new ViewGroup.
MarginLayoutParams
(0, 0);
22
marginLayoutParams
.setMargins(1, 2, 3, 4);
23
assertThat(
marginLayoutParams
.leftMargin, equalTo(1));
24
assertThat(
marginLayoutParams
.topMargin, equalTo(2));
25
assertThat(
marginLayoutParams
.rightMargin, equalTo(3));
26
assertThat(
marginLayoutParams
.bottomMargin, equalTo(4));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
ViewLayoutUtils.java
21
import android.view.ViewGroup.
MarginLayoutParams
;
30
public static
MarginLayoutParams
newLayoutParam(final ViewGroup placer, final int width,
47
if (lp instanceof
MarginLayoutParams
) {
48
final
MarginLayoutParams
marginLayoutParams
= (
MarginLayoutParams
)lp;
49
marginLayoutParams
.width = w;
50
marginLayoutParams
.height = h;
51
marginLayoutParams
.setMargins(x, y, 0, 0);
/cts/tests/tests/widget/src/android/widget/cts/
LinearLayout_LayoutParamsTest.java
28
import android.view.ViewGroup.
MarginLayoutParams
;
47
MarginLayoutParams
marginLayoutParams
= new
MarginLayoutParams
(320, 480);
48
new LinearLayout.LayoutParams(
marginLayoutParams
);
/packages/apps/DeskClock/src/com/android/deskclock/
TimerSetupView.java
112
MarginLayoutParams
marginLayoutParams
=
113
(
MarginLayoutParams
) timerDisplay.getLayoutParams();
114
marginLayoutParams
.bottomMargin = timerStart.getMeasuredHeight();
Completed in 193 milliseconds