OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:viewStub
(Results
1 - 6
of
6
) sorted by null
/cts/tests/tests/view/src/android/view/cts/
ViewStubTest.java
33
import android.view.
ViewStub
;
34
import android.view.
ViewStub
.OnInflateListener;
38
* Test {@link
ViewStub
}.
60
new
ViewStub
(mContext);
62
new
ViewStub
(mContext, 10);
64
new
ViewStub
(mContext, attrs);
66
new
ViewStub
(mContext, attrs, 30);
70
ViewStub
viewStub
= new
ViewStub
(mContext)
[
all
...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ViewStubTest.java
5
import android.view.
ViewStub
;
27
ViewStub
viewStub
= new
ViewStub
(ctxt);
31
viewStub
.setId(stubId);
32
viewStub
.setInflatedId(inflatedId);
33
viewStub
.setLayoutResource(R.layout.media);
37
root.addView(
viewStub
);
40
View inflatedView =
viewStub
.inflate();
52
ViewStub
viewStub = new ViewStub(ctxt
[
all
...]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowViewStub.java
7
import android.view.
ViewStub
;
17
@Implements(
ViewStub
.class)
19
@RealObject
ViewStub
viewStub
;
24
private
ViewStub
.OnInflateListener mInflateListener;
67
ViewParent viewParent =
viewStub
.getParent();
72
LayoutInflater factory = LayoutInflater.from(
viewStub
.getContext());
79
int index = parent.indexOfChild(
viewStub
);
81
// parent.removeViewInLayout(
viewStub
);
93
mInflateListener.onInflate(
viewStub
, view)
[
all
...]
/frameworks/base/core/tests/coretests/src/android/view/
StubbedView.java
26
* Exercise <
ViewStub
/> tag in XML files.
32
setContentView(R.layout.
viewstub
);
36
final View view = findViewById(R.id.
viewStub
);
ViewStubTest.java
26
import android.view.
ViewStub
;
42
final View stub = activity.findViewById(R.id.
viewStub
);
43
assertNotNull("The
ViewStub
does not exist", stub);
51
final
ViewStub
stub = (
ViewStub
) activity.findViewById(R.id.
viewStub
);
62
final
ViewStub
stub = (
ViewStub
) activity.findViewById(R.id.viewStubWithId);
75
final
ViewStub
stub = (
ViewStub
) activity.findViewById(R.id.viewStubWithId)
[
all
...]
/frameworks/base/core/java/android/view/
LayoutInflater.java
595
if (view instanceof
ViewStub
) {
596
// always use ourselves when inflating
ViewStub
later
597
final
ViewStub
viewStub
= (
ViewStub
) view;
598
viewStub
.setLayoutInflater(this);
[
all
...]
Completed in 553 milliseconds