Search in sources :

Example 61 with Activity

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);
}
Also used : Activity(android.app.Activity)

Example 62 with Activity

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);
}
Also used : Activity(android.app.Activity)

Example 63 with Activity

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);
}
Also used : Activity(android.app.Activity)

Example 64 with Activity

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);
}
Also used : Activity(android.app.Activity)

Example 65 with Activity

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);
        }
    }
}
Also used : Activity(android.app.Activity) CollapsingToolbarLayout(android.support.design.widget.CollapsingToolbarLayout)

Aggregations

Activity (android.app.Activity)3220 Intent (android.content.Intent)612 View (android.view.View)535 Test (org.junit.Test)456 TextView (android.widget.TextView)263 Context (android.content.Context)220 ArrayList (java.util.ArrayList)201 Bundle (android.os.Bundle)197 DialogInterface (android.content.DialogInterface)167 SettingsActivity (com.android.settings.SettingsActivity)167 ViewGroup (android.view.ViewGroup)133 ImageView (android.widget.ImageView)116 AlertDialog (android.app.AlertDialog)109 LayoutInflater (android.view.LayoutInflater)109 Preference (android.support.v7.preference.Preference)83 PackageManager (android.content.pm.PackageManager)76 Uri (android.net.Uri)76 EditText (android.widget.EditText)72 ComponentName (android.content.ComponentName)71 Handler (android.os.Handler)71