Search in sources :

Example 31 with AppCompatActivity

use of androidx.appcompat.app.AppCompatActivity in project Taskbar by farmerbb.

the class AboutFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    AppCompatActivity activity = (AppCompatActivity) getActivity();
    activity.setTitle(((MainActivity) getActivity()).getAboutFragmentTitle());
    ActionBar actionBar = activity.getSupportActionBar();
    if (actionBar != null)
        actionBar.setDisplayHomeAsUpEnabled(((MainActivity) getActivity()).getAboutFragmentBackArrow());
}
Also used : AppCompatActivity(androidx.appcompat.app.AppCompatActivity) MainActivity(com.farmerbb.taskbar.activity.MainActivity) ActionBar(androidx.appcompat.app.ActionBar)

Example 32 with AppCompatActivity

use of androidx.appcompat.app.AppCompatActivity in project Taskbar by farmerbb.

the class DesktopModeFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    AppCompatActivity activity = (AppCompatActivity) getActivity();
    activity.setTitle(R.string.tb_pref_header_desktop_mode);
    ActionBar actionBar = activity.getSupportActionBar();
    if (actionBar != null)
        actionBar.setDisplayHomeAsUpEnabled(true);
}
Also used : AppCompatActivity(androidx.appcompat.app.AppCompatActivity) ActionBar(androidx.appcompat.app.ActionBar)

Example 33 with AppCompatActivity

use of androidx.appcompat.app.AppCompatActivity in project prebid-mobile-android by prebid.

the class PrebidServerSettingsViewholder method openPrebidServerDialog.

private void openPrebidServerDialog() {
    FragmentManager fragmentManager = ((AppCompatActivity) itemView.getContext()).getSupportFragmentManager();
    PrebidServerDialog dialog = PrebidServerDialog.newInstance();
    dialog.show(fragmentManager, PrebidServerDialog.TAG);
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager) AppCompatActivity(androidx.appcompat.app.AppCompatActivity) PrebidServerDialog(org.prebid.mobile.drprebid.ui.dialog.PrebidServerDialog)

Example 34 with AppCompatActivity

use of androidx.appcompat.app.AppCompatActivity in project prebid-mobile-android by prebid.

the class PrebidServerSettingsViewholder method openInputDialog.

private void openInputDialog(String title, int type, int format, boolean shouldShowQrScanner) {
    FragmentManager fragmentManager = ((AppCompatActivity) itemView.getContext()).getSupportFragmentManager();
    InputDialog dialog = InputDialog.newInstance(title, type, format, shouldShowQrScanner);
    dialog.show(fragmentManager, InputDialog.TAG);
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager) InputDialog(org.prebid.mobile.drprebid.ui.dialog.InputDialog) AppCompatActivity(androidx.appcompat.app.AppCompatActivity)

Example 35 with AppCompatActivity

use of androidx.appcompat.app.AppCompatActivity in project LabDayApp by jakdor.

the class TimetableFragment method onResume.

@Override
public void onResume() {
    super.onResume();
    if (testMode)
        return;
    if (getActivity() != null) {
        ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
        if (actionBar != null) {
            actionBar.show();
            actionBar.setTitle(R.string.menu_title_timetable);
        }
    }
}
Also used : AppCompatActivity(androidx.appcompat.app.AppCompatActivity) ActionBar(androidx.appcompat.app.ActionBar)

Aggregations

AppCompatActivity (androidx.appcompat.app.AppCompatActivity)76 ActionBar (androidx.appcompat.app.ActionBar)23 View (android.view.View)20 Toolbar (androidx.appcompat.widget.Toolbar)19 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)10 TextView (android.widget.TextView)7 RecyclerView (androidx.recyclerview.widget.RecyclerView)7 Intent (android.content.Intent)6 Fragment (androidx.fragment.app.Fragment)6 BindView (butterknife.BindView)6 Activity (android.app.Activity)5 LayoutInflater (android.view.LayoutInflater)5 Bundle (android.os.Bundle)4 ImageView (android.widget.ImageView)4 ScrollView (android.widget.ScrollView)4 List (java.util.List)4 Nullable (androidx.annotation.Nullable)3 SuppressLint (android.annotation.SuppressLint)2 TargetApi (android.annotation.TargetApi)2 Dialog (android.app.Dialog)2