use of android.app.Activity in project android_frameworks_base by ResurrectionRemix.
the class BaselineAlignmentCenterGravityTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
final Activity activity = getActivity();
mButton1 = (Button) activity.findViewById(R.id.button1);
mButton2 = (Button) activity.findViewById(R.id.button2);
mButton3 = (Button) activity.findViewById(R.id.button3);
}
use of android.app.Activity in project android_frameworks_base by ResurrectionRemix.
the class FillInWrapTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
final Activity activity = getActivity();
mChild = activity.findViewById(R.id.data);
mContainer = activity.findViewById(R.id.layout);
}
use of android.app.Activity in project android_frameworks_base by ResurrectionRemix.
the class WeightSumTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
final Activity activity = getActivity();
mChild = activity.findViewById(R.id.child);
mContainer = activity.findViewById(R.id.container);
}
use of android.app.Activity in project android_frameworks_base by ResurrectionRemix.
the class BaselineButtonsTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
final Activity activity = getActivity();
mCurrentTime = activity.findViewById(R.id.currenttime);
mTotalTime = activity.findViewById(R.id.totaltime);
mPrev = (ImageButton) activity.findViewById(R.id.prev);
mNext = (ImageButton) activity.findViewById(R.id.next);
mPause = (ImageButton) activity.findViewById(R.id.pause);
mLayout = activity.findViewById(R.id.layout);
}
use of android.app.Activity in project Synthese_2BIN by TheYoungSensei.
the class ItemDetailFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments().containsKey(ARG_ITEM_ID)) {
// Load the dummy content specified by the fragment
// arguments. In a real-world scenario, use a Loader
// to load content from a content provider.
mItem = ArtistContent.ITEM_MAP.get(getArguments().getString(ARG_ITEM_ID));
Activity activity = this.getActivity();
CollapsingToolbarLayout appBarLayout = (CollapsingToolbarLayout) activity.findViewById(R.id.toolbar_layout);
if (appBarLayout != null) {
appBarLayout.setTitle(mItem.content);
}
}
}
Aggregations